mirror of
https://github.com/chinchang/web-maker.git
synced 2025-05-15 14:55:20 +02:00
28 lines
657 B
JavaScript
28 lines
657 B
JavaScript
/// <reference types="cypress" />
|
|
|
|
describe('Modals pop-up when header btns are pressed', () => {
|
|
beforeEach(() => {
|
|
cy.init();
|
|
});
|
|
|
|
// Selectors for each button
|
|
const ADD_LIBRARY_SEL = '[data-testid=addLibraryButton]';
|
|
const NEW_SEL = '[data-testid=newButton]';
|
|
const LOGIN_SEL = '[data-testid=loginButton]';
|
|
|
|
it('Add Library', () => {
|
|
cy.get(ADD_LIBRARY_SEL).click();
|
|
cy.get('.modal__content').should('be.visible');
|
|
});
|
|
|
|
it('+ New', () => {
|
|
cy.get(NEW_SEL).click();
|
|
cy.get('.modal__content').should('be.visible');
|
|
});
|
|
|
|
it('Login/SignUp', () => {
|
|
cy.get(LOGIN_SEL).click();
|
|
cy.get('.modal__content').should('be.visible');
|
|
});
|
|
});
|