Working on TaxRates test

This commit is contained in:
Hillel Coren 2016-04-15 10:25:26 +03:00
parent 2f2081b4b0
commit fb9a2de240
2 changed files with 25 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<?php //[STAMP] 5d3610ae822b6990504d5dce501c103b
<?php //[STAMP] a3cf36879dbbec28f15389e7d8d325a2
namespace _generated;
// This class was automatically generated by build task
@ -2664,6 +2664,28 @@ trait AcceptanceTesterActions
}
/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Move to the middle of the given element matched by the given locator.
* Extra shift, calculated from the top-left corner of the element, can be set by passing $offsetX and $offsetY parameters.
*
* ``` php
* <?php
* $I->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.
*

View File

@ -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