1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00

Fix for tests

This commit is contained in:
Hillel Coren 2016-10-02 13:36:25 +03:00
parent 88c1e2ef3d
commit 20b3e0f61d

View File

@ -39,8 +39,8 @@ class AcceptanceTester extends \Codeception\Actor
function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now') function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now')
{ {
$_date = date('Y, m, d', strtotime($date)); $date = strtotime($date) * 1000;
$I->executeJS(sprintf('$(\'%s\').datepicker(\'update\', new Date(%s))', $element, $_date)); $I->executeJS(sprintf('$(\'%s\').datepicker(\'update\', new Date(%s))', $element, $date));
} }
function selectDropdown(\AcceptanceTester $I, $option, $dropdownSelector) function selectDropdown(\AcceptanceTester $I, $option, $dropdownSelector)