From ddfb9dac7e1158fef4abbfba6c6ddd62f6cae858 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 2 Oct 2016 12:50:15 +0300 Subject: [PATCH] Fix for tests --- tests/acceptance/InvoiceCest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/InvoiceCest.php b/tests/acceptance/InvoiceCest.php index eb66779b9bdf..bdddb5a05722 100644 --- a/tests/acceptance/InvoiceCest.php +++ b/tests/acceptance/InvoiceCest.php @@ -32,7 +32,7 @@ class InvoiceCest $invoiceNumber = $I->grabAttributeFrom('#invoice_number', 'value'); $I->selectDropdown($I, $clientEmail, '.client_select .dropdown-toggle'); - //$I->selectDataPicker($I, '#invoice_date'); + $I->selectDataPicker($I, '#invoice_date'); $I->selectDataPicker($I, '#due_date', '+ 15 day'); $I->fillField('#po_number', rand(100, 200)); $I->fillField('#discount', rand(0, 20)); @@ -62,7 +62,8 @@ class InvoiceCest //change po_number with random number $I->amOnPage('/invoices/1/edit'); - $po_number = rand(100, 300); + $I->selectDataPicker($I, '#invoice_date'); + $po_number = rand(1, 10000); $I->fillField('#po_number', $po_number); //save