Fix for tax rates test

This commit is contained in:
Hillel Coren 2016-04-11 11:48:46 +03:00
parent d4915074b6
commit 27f72a4730
2 changed files with 2 additions and 1 deletions

View File

@ -399,6 +399,7 @@
@endif @endif
<td style="min-width:120px"> <td style="min-width:120px">
{!! Former::select('') {!! Former::select('')
->id('taxRateSelect1')
->addOption('', '') ->addOption('', '')
->options($taxRateOptions) ->options($taxRateOptions)
->addClass('tax-select') ->addClass('tax-select')

View File

@ -72,7 +72,7 @@ class TaxRatesCest
$I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle'); $I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle');
$I->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey); $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->click('table.invoice-table tbody tr:nth-child(1) .tt-selectable');
$I->selectOption('#taxRateSelect', $invoiceTaxName . ' ' . floatval($invoiceTaxRate) . '%'); $I->selectOption('#taxRateSelect1', $invoiceTaxName . ' ' . floatval($invoiceTaxRate) . '%');
$I->wait(2); $I->wait(2);
// check total is right before saving // check total is right before saving