From 27f72a47302a6515576a6671dc0a879793cc89b0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 11 Apr 2016 11:48:46 +0300 Subject: [PATCH] Fix for tax rates test --- resources/views/invoices/edit.blade.php | 1 + tests/acceptance/TaxRatesCest.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 247b1a6038f8..75c4450d4ca3 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -399,6 +399,7 @@ @endif {!! Former::select('') + ->id('taxRateSelect1') ->addOption('', '') ->options($taxRateOptions) ->addClass('tax-select') diff --git a/tests/acceptance/TaxRatesCest.php b/tests/acceptance/TaxRatesCest.php index 6320482c9e62..684683242d49 100644 --- a/tests/acceptance/TaxRatesCest.php +++ b/tests/acceptance/TaxRatesCest.php @@ -72,7 +72,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('#taxRateSelect', $invoiceTaxName . ' ' . floatval($invoiceTaxRate) . '%'); + $I->selectOption('#taxRateSelect1', $invoiceTaxName . ' ' . floatval($invoiceTaxRate) . '%'); $I->wait(2); // check total is right before saving