mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
Fix for tax tests
This commit is contained in:
parent
f1ee289356
commit
3ac6c42efb
@ -47,7 +47,7 @@ class TaxRatesCest
|
|||||||
$I->fillField(['name' => 'product_key'], $productKey);
|
$I->fillField(['name' => 'product_key'], $productKey);
|
||||||
$I->fillField(['name' => 'notes'], $this->faker->text(80));
|
$I->fillField(['name' => 'notes'], $this->faker->text(80));
|
||||||
$I->fillField(['name' => 'cost'], $itemCost);
|
$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->click('Save');
|
||||||
$I->wait(1);
|
$I->wait(1);
|
||||||
//$I->see($productKey);
|
//$I->see($productKey);
|
||||||
@ -63,7 +63,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('#taxRateSelect1', $invoiceTaxName . ' ' . floatval($invoiceTaxRate) . '%');
|
$I->selectOption('#taxRateSelect1', $invoiceTaxName . ': ' . floatval($invoiceTaxRate) . '%');
|
||||||
$I->wait(3);
|
$I->wait(3);
|
||||||
|
|
||||||
// check total is right before saving
|
// check total is right before saving
|
||||||
|
Loading…
x
Reference in New Issue
Block a user