Fix for tests after product_key change

This commit is contained in:
Hillel Coren 2016-02-29 20:08:09 +02:00
parent 1602832fb6
commit 3f11969c7c
4 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class CheckBalanceCest
$I->amOnPage('/invoices/create'); $I->amOnPage('/invoices/create');
$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('Save'); $I->click('Save');
$I->wait(1); $I->wait(1);
$I->see($clientEmail); $I->see($clientEmail);

View File

@ -53,6 +53,7 @@ class OnlinePaymentCest
$I->amOnPage('/invoices/create'); $I->amOnPage('/invoices/create');
$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('Save'); $I->click('Save');
$I->see($clientEmail); $I->see($clientEmail);
@ -88,6 +89,7 @@ class OnlinePaymentCest
// create recurring invoice and auto-bill // create recurring invoice and auto-bill
$I->amOnPage('/recurring_invoices/create'); $I->amOnPage('/recurring_invoices/create');
$I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle'); $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->fillField('table.invoice-table tbody tr:nth-child(1) #product_key', $productKey);
$I->checkOption('#auto_bill'); $I->checkOption('#auto_bill');
$I->executeJS('preparePdfData(\'email\')'); $I->executeJS('preparePdfData(\'email\')');

View File

@ -40,6 +40,7 @@ class PaymentCest
$I->amOnPage('/invoices/create'); $I->amOnPage('/invoices/create');
$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('Save'); $I->click('Save');
$I->see($clientEmail); $I->see($clientEmail);

View File

@ -68,6 +68,7 @@ class TaxRatesCest
$I->amOnPage('/invoices/create'); $I->amOnPage('/invoices/create');
$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->selectOption('#taxRateSelect', $invoiceTaxName . ' ' . $invoiceTaxRate . '%'); $I->selectOption('#taxRateSelect', $invoiceTaxName . ' ' . $invoiceTaxRate . '%');
$I->wait(2); $I->wait(2);