From 76cb263244d88100be6c215baae3f3a45a6f2000 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 9 Mar 2023 10:29:21 +0800 Subject: [PATCH] MDL-77574 myoverview: wait until next button exists before clicking --- .../myoverview/tests/behat/block_myoverview_pagination.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/blocks/myoverview/tests/behat/block_myoverview_pagination.feature b/blocks/myoverview/tests/behat/block_myoverview_pagination.feature index d939fbe021a..4e018990b88 100644 --- a/blocks/myoverview/tests/behat/block_myoverview_pagination.feature +++ b/blocks/myoverview/tests/behat/block_myoverview_pagination.feature @@ -146,6 +146,7 @@ Feature: My overview block pagination | student1 | C12 | student | | student1 | C13 | student | When I am on the "My courses" page logged in as "student1" + And I wait until ".block_myoverview [data-control='next']" "css_element" exists And I click on "[data-control='next']" "css_element" in the "Course overview" "block" Then the "class" attribute of ".block_myoverview [data-control='next']" "css_element" should contain "disabled" And I log out