From fb9a2de240a2c700fcba8b3dc000316cdd099a07 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 15 Apr 2016 10:25:26 +0300 Subject: [PATCH] Working on TaxRates test --- .../_generated/AcceptanceTesterActions.php | 24 ++++++++++++++++++- tests/acceptance/TaxRatesCest.php | 4 ++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/tests/_support/_generated/AcceptanceTesterActions.php b/tests/_support/_generated/AcceptanceTesterActions.php index cebe7fff8f20..82427d1e2a5e 100644 --- a/tests/_support/_generated/AcceptanceTesterActions.php +++ b/tests/_support/_generated/AcceptanceTesterActions.php @@ -1,4 +1,4 @@ -scrollTo(['css' => '.checkout'], 20, 50); + * ?> + * ``` + * + * @param $selector + * @param int $offsetX + * @param int $offsetY + * @see \Codeception\Module\WebDriver::scrollTo() + */ + public function scrollTo($selector, $offsetX = null, $offsetY = null) { + return $this->getScenario()->runStep(new \Codeception\Step\Action('scrollTo', func_get_args())); + } + + /** * [!] Method is generated. Documentation taken from corresponding module. * diff --git a/tests/acceptance/TaxRatesCest.php b/tests/acceptance/TaxRatesCest.php index 684683242d49..75f7de7a7508 100644 --- a/tests/acceptance/TaxRatesCest.php +++ b/tests/acceptance/TaxRatesCest.php @@ -73,12 +73,12 @@ class TaxRatesCest $I->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey); $I->click('table.invoice-table tbody tr:nth-child(1) .tt-selectable'); $I->selectOption('#taxRateSelect1', $invoiceTaxName . ' ' . floatval($invoiceTaxRate) . '%'); - $I->wait(2); + $I->wait(3); // check total is right before saving $I->see("\${$total}"); $I->click('Save'); - $I->wait(1); + $I->wait(2); $I->see($clientEmail); // check total is right after saving