diff --git a/tests/behat/features/web/general/sidebar.feature b/tests/behat/features/web/general/sidebar.feature index 554f9df154..12f1e48c7a 100644 --- a/tests/behat/features/web/general/sidebar.feature +++ b/tests/behat/features/web/general/sidebar.feature @@ -3,26 +3,33 @@ Feature: Sidebar Navigation Scenario: Button opens and closes sidebar Given I am on the homepage + And I wait for the page to be loaded Then the element "#sidebar" should not be visible And the element "#sidebar-overlay" should not be visible When I click "#top-app-bar__btn-sidebar-toggle" + And I wait for the page to be loaded Then the url should match "/app/$" And the element "#sidebar" should be visible And the element "#sidebar-overlay" should be visible When I click "#top-app-bar__btn-sidebar-toggle" + And I wait for the page to be loaded Then the url should match "/app/$" And the element "#sidebar" should not be visible And the element "#sidebar-overlay" should not be visible Scenario: Back button closes sidebar Given I am on the homepage + And I wait for the page to be loaded And I open the menu And I click "#btn-login" + And I wait for the page to be loaded And I click "#top-app-bar__btn-sidebar-toggle" + And I wait for the page to be loaded Then the url should match "/app/login$" And the element "#sidebar" should be visible And the element "#sidebar-overlay" should be visible When I click browser's back button + And I wait for the page to be loaded Then the url should match "/app/login" And the element "#sidebar" should not be visible And the element "#sidebar-overlay" should not be visible