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 33c61bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/behat/features/web/general/sidebar.feature
Expand Up @@ -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

0 comments on commit 33c61bc

Please sign in to comment.