/**
  * @group message
  * @guy DeliveryTester\DeliverySteps
  */
 public function editName501(DeliveryTester\DeliverySteps $I)
 {
     $firstname = "ДоствкаИмяМаксСимв";
     $changedname = InitTest::$text501;
     //For deleting
     $this->CreatedMethods[] = $firstname;
     $this->CreatedMethods[] = $changedname;
     $I->createDelivery($firstname);
     $I->waitForText("Редактирование способа доставки: " . $firstname, null, '.title');
     $I->fillField(DeliveryEditPage::$FieldName, $changedname);
     $I->click(DeliveryEditPage::$ButtonSave);
     $I->CheckForAlertPresent('error', 'namemax');
 }