From 57e9fec4c86d5088b1915ed926cc8a8ea63d9b9d Mon Sep 17 00:00:00 2001
From: Simey Lameze <simey@moodle.com>
Date: Wed, 8 Mar 2023 10:34:35 +0800
Subject: [PATCH] MDL-77380 block_myoverview: improve show toggle functionality
 test

---
 blocks/myoverview/tests/behat/block_myoverview_hidden.feature | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blocks/myoverview/tests/behat/block_myoverview_hidden.feature b/blocks/myoverview/tests/behat/block_myoverview_hidden.feature
index ac6ead53c10..e9eb93ea509 100644
--- a/blocks/myoverview/tests/behat/block_myoverview_hidden.feature
+++ b/blocks/myoverview/tests/behat/block_myoverview_hidden.feature
@@ -59,9 +59,10 @@ Feature: The my overview block allows users to hide their courses
     And I click on "Removed from view" "link" in the "Course overview" "block"
     And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
     And I click on "Restore to view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
-    And I reload the page
+    And I should not see "Course 2" in the "Course overview" "block"
     And I click on "Removed from view" "button" in the "Course overview" "block"
     When I click on "All" "link" in the "Course overview" "block"
+    And I reload the page
     Then I should see "Course 2" in the "Course overview" "block"
 
   Scenario: Test show toggle functionality w/ favorites