Skip to content

Commit

Permalink
hotfix sidebar test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmetzner committed Mar 20, 2021
1 parent b15e768 commit dd5ec17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/behat/features/web/general/sidebar.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ 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
Expand All @@ -18,11 +21,14 @@ Feature: Sidebar Navigation
Given I am on the homepage
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

0 comments on commit dd5ec17

Please sign in to comment.