From 06cfcc8daea15a742ce7af9ce4e7e25d9bdf64d5 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 61bfbf6b763..bc4f23c734b 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