From 6d496b79a368f26de5e6768533894fb7ea1eeb78 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 17 Jun 2020 21:07:09 +1200 Subject: [PATCH] Add a wait to see if that fixes behat test. --- tests/behat/extra_features.feature | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/behat/extra_features.feature b/tests/behat/extra_features.feature index 489c5a1..802d2d6 100644 --- a/tests/behat/extra_features.feature +++ b/tests/behat/extra_features.feature @@ -219,10 +219,11 @@ Feature: Test the various new features in the attendance module | id_addmultiply | 0 | And I click on "submitbutton" "button" And I click on "Take attendance" "link" - # Present - And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" And I set the field "Set status for" to "unselected" + # Set student 1 as present. + And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" And I click on "setallstatuses" "field" in the ".takelist tbody td.c3" "css_element" + And I wait until the page is ready And I press "Save attendance" When I follow "Report" Then "P" "text" should exist in the "Student 1" "table_row"