skillbox/client/cypress/integration/rooms-page.spec.js

19 lines
431 B
JavaScript

describe('The Rooms Page', () => {
// todo: mock all the graphql queries and mutations
it('goes to the rooms page', () => {
cy.visit('/rooms');
cy.login('nico.zickgraf', 'test');
cy.get('[data-cy=add-room]').should('exist');
});
it('add room should not exist for student', () => {
cy.visit('/rooms');
cy.login('rahel.cueni', 'test');
cy.get('[data-cy=add-room]').should('not.exist');
});
});