-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const WAITING_TIME = Cypress.env('waitingTime') | ||
|
||
describe(`Right side panel`, () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
}) | ||
|
||
it('Should be opened by default', () => { | ||
cy.get('[data-testid="right-panel"]').should('be.visible') | ||
}) | ||
|
||
it('Should be closed when clicking on the close button', () => { | ||
cy.get('button[aria-label="Close Panel"]').click() | ||
cy.get('[data-testid="right-panel"]').should('not.be.visible') | ||
}) | ||
|
||
it('Should be opened when clicking on the menu bars button', () => { | ||
cy.get('button[aria-label="Close Panel"]').click() | ||
cy.get('button[aria-label="Open Panel"]').click() | ||
cy.get('[data-testid="right-panel"]').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters