1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for tests

This commit is contained in:
Hillel Coren 2016-10-02 13:36:14 +03:00
parent 2a0d943ba2
commit a44bea78b2

View File

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