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:
parent
88c1e2ef3d
commit
20b3e0f61d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user