1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix for tax tests

This commit is contained in:
Hillel Coren 2017-03-19 16:02:49 +02:00
parent f1ee289356
commit 3ac6c42efb

View File

@ -47,7 +47,7 @@ class TaxRatesCest
$I->fillField(['name' => 'product_key'], $productKey);
$I->fillField(['name' => 'notes'], $this->faker->text(80));
$I->fillField(['name' => 'cost'], $itemCost);
$I->selectOption('select[name=default_tax_rate_id]', $itemTaxName . ' ' . $itemTaxRate . '%');
$I->selectOption('select[name=default_tax_rate_id]', $itemTaxName . ': ' . $itemTaxRate . '%');
$I->click('Save');
$I->wait(1);
//$I->see($productKey);
@ -63,7 +63,7 @@ class TaxRatesCest
$I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle');
$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->selectOption('#taxRateSelect1', $invoiceTaxName . ': ' . floatval($invoiceTaxRate) . '%');
$I->wait(3);
// check total is right before saving