diff --git a/tests/UI/specs/UIIntegration_spec.js b/tests/UI/specs/UIIntegration_spec.js index 7cb5f456b5918d5ae0d5c7d99a53b9d97fcef637..76b521567fb44a939c9e0efdbb75e6f07be14e28 100644 --- a/tests/UI/specs/UIIntegration_spec.js +++ b/tests/UI/specs/UIIntegration_spec.js @@ -580,7 +580,12 @@ describe("UIIntegrationTest", function () { // TODO: Rename to Piwik? page.evaluate(function () { $(document).ready(function () { $('#date').click(); - $('#period_id_range').click(); + }); + }); + // we need to make sure there to wait for a bit till date is opened and period selected + page.click('#period_id_range'); + page.evaluate(function () { + $(document).ready(function () { $('#inputCalendarFrom').val('2012-08-02'); $('#inputCalendarTo').val('2012-08-12'); setTimeout(function () {$('#calendarApply').click();}, 500);