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:
parent
2a0d943ba2
commit
a44bea78b2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user