From 33c61bc476b5315a742603a52eab5013e935fee9 Mon Sep 17 00:00:00 2001 From: Daniel Metzner Date: Sat, 20 Mar 2021 18:53:00 +0100 Subject: [PATCH] hotfix sidebar test --- tests/behat/features/web/general/sidebar.feature | 7 +++++++ 1 file changed, 7 insertions(+) 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