From 3f11969c7c1201aa46623d06c5c4c1d47a58ad0a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 29 Feb 2016 20:08:09 +0200 Subject: [PATCH] Fix for tests after product_key change --- tests/acceptance/CheckBalanceCest.php | 1 + tests/acceptance/OnlinePaymentCest.php | 2 ++ tests/acceptance/PaymentCest.php | 1 + tests/acceptance/TaxRatesCest.php | 1 + 4 files changed, 5 insertions(+) diff --git a/tests/acceptance/CheckBalanceCest.php b/tests/acceptance/CheckBalanceCest.php index 0ffe27f62a4f..33378baab0ba 100644 --- a/tests/acceptance/CheckBalanceCest.php +++ b/tests/acceptance/CheckBalanceCest.php @@ -44,6 +44,7 @@ class CheckBalanceCest $I->amOnPage('/invoices/create'); $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->click('Save'); $I->wait(1); $I->see($clientEmail); diff --git a/tests/acceptance/OnlinePaymentCest.php b/tests/acceptance/OnlinePaymentCest.php index ad4b15517579..37091ce2953b 100644 --- a/tests/acceptance/OnlinePaymentCest.php +++ b/tests/acceptance/OnlinePaymentCest.php @@ -53,6 +53,7 @@ class OnlinePaymentCest $I->amOnPage('/invoices/create'); $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->click('Save'); $I->see($clientEmail); @@ -88,6 +89,7 @@ class OnlinePaymentCest // create recurring invoice and auto-bill $I->amOnPage('/recurring_invoices/create'); $I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle'); + $I->click('table.invoice-table tbody tr:nth-child(1) .tt-selectable'); $I->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey); $I->checkOption('#auto_bill'); $I->executeJS('preparePdfData(\'email\')'); diff --git a/tests/acceptance/PaymentCest.php b/tests/acceptance/PaymentCest.php index 6275babbbec6..3940d6c7ae15 100644 --- a/tests/acceptance/PaymentCest.php +++ b/tests/acceptance/PaymentCest.php @@ -40,6 +40,7 @@ class PaymentCest $I->amOnPage('/invoices/create'); $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->click('Save'); $I->see($clientEmail); diff --git a/tests/acceptance/TaxRatesCest.php b/tests/acceptance/TaxRatesCest.php index 06ec37575746..209634de6fed 100644 --- a/tests/acceptance/TaxRatesCest.php +++ b/tests/acceptance/TaxRatesCest.php @@ -68,6 +68,7 @@ class TaxRatesCest $I->amOnPage('/invoices/create'); $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 . ' ' . $invoiceTaxRate . '%'); $I->wait(2);