/** * @guy CurrenciesTester\CurrenciesSteps */ public function SaveAndExitButton(CurrenciesTester\CurrenciesSteps $I) { $name = "Лат"; $isocode = "лат"; $symbol = "лат"; $rate = "11111"; $I->EditCurrency($name, $isocode, $symbol, $rate, $save = 'saveexit'); $I->waitForElementVisible('.alert.in.fade.alert-success'); $I->see('Изменения сохранены'); $I->waitForElementNotVisible('.alert.in.fade.alert-success'); $I->waitForText('Список валют'); $I->see('Лат', './/*[@id="mainContent"]/section/div[2]/div/form/table/tbody/tr[1]/td[2]/a'); $I->see('лат', './/*[@id="mainContent"]/section/div[2]/div/form/table/tbody/tr[1]/td[3]'); $I->see('лат', './/*[@id="mainContent"]/section/div[2]/div/form/table/tbody/tr[1]/td[4]'); InitTest::ClearAllCach($I); }
/** * @guy CurrenciesTester\CurrenciesSteps */ public function ICMS_1508_Symbols10Create(CurrenciesTester\CurrenciesSteps $I) { $name = "Гульден123"; $isocode = "Гульден123"; $symbol = "Гульден123"; $rate = "111112.1233"; $I->CreateCurrency($name, $isocode, $symbol, $rate); $I->waitForElementVisible('.alert.in.fade.alert-error'); $I->see('Поле Iso Код не может превышать 5 символов в длину.'); $I->see('Поле Символ не может превышать 5 символов в длину.'); $I->waitForElementNotVisible('.alert.in.fade.alert-error'); $I->fillField(CurrenciesPage::$IsoCodCreate, 'Гульд'); $I->click(CurrenciesPage::$SaveButton); $I->waitForElementVisible('.alert.in.fade.alert-error'); $I->see('Поле Символ не может превышать 5 символов в длину.'); $I->waitForElementNotVisible('.alert.in.fade.alert-error'); $I->fillField(CurrenciesPage::$IsoCodCreate, 'Гульден123'); $I->fillField(CurrenciesPage::$SymbolCreate, 'Гульд'); $I->click(CurrenciesPage::$SaveButton); $I->waitForElementVisible('.alert.in.fade.alert-error'); $I->see('Поле Iso Код не может превышать 5 символов в длину.'); $I->waitForElementNotVisible('.alert.in.fade.alert-error'); $I->fillField(CurrenciesPage::$IsoCodCreate, 'Гульд'); $I->click(CurrenciesPage::$SaveButton); // $I->waitForElementVisible('.alert.in.fade.alert-success'); $I->waitForText('Валюта создана'); // $I->waitForElementNotVisible('.alert.in.fade.alert-success'); $name1 = "Гульден123"; $isocode1 = "Гульд"; $symbol1 = "Гульд"; $rate1 = "111112.1233"; $I->CheckInFields($name1, $isocode1, $symbol1, $rate1); $I->click(CurrenciesPage::$GoBackButton); $I->CheckInListLanding($name1, $isocode1, $symbol1); }