From 96ac9a0d48e3199e6a18b871ad348471293b9a1b Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 2 Feb 2017 14:16:02 +1300 Subject: [PATCH] Add delay for checking text to try and fix behat. --- tests/behat/report.feature | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/behat/report.feature b/tests/behat/report.feature index 679bf20..e395035 100644 --- a/tests/behat/report.feature +++ b/tests/behat/report.feature @@ -129,6 +129,7 @@ Feature: Visiting reports | id_sessiontype_1 | 1 | | id_groups | Group1 | And I click on "id_submitbutton" "button" + And I wait until the page is ready Then I should see "3am - 4am" And "Group: Group1" "text" should exist in the "3am - 4am" "table_row" @@ -167,6 +168,7 @@ Feature: Visiting reports | id_sestime_starthour | 03 | | id_sestime_endhour | 04 | And I click on "id_submitbutton" "button" + And I wait until the page is ready Then I should see "3am - 4am" When I click on "Take attendance" "link" in the "3am - 4am" "table_row" @@ -179,6 +181,7 @@ Feature: Visiting reports | id_sestime_starthour | 05 | | id_sestime_endhour | 06 | And I click on "id_submitbutton" "button" + And I wait until the page is ready Then I should see "05:00 - 06:00" When I follow "Report"