Skip to content

Commit

Permalink
Added integration tests for information overlay.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-gale committed Mar 28, 2020
1 parent 7f86e7c commit edfbd14
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cypress/integration/information/overlay.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
context('Factory', () => {
beforeEach(() => {
cy.visit('http://localhost:3000');
});

it('view information overview', () => {
cy.get('[aria-label="info"]').click();
cy.get('.MuiBox-root > .MuiTypography-root');
});

it('dismiss information overview', () => {
cy.get('[aria-label="info"]').click();
cy.get('.MuiBackdrop-root').click('left');
cy.get('canvas').click();
});
});

0 comments on commit edfbd14

Please sign in to comment.