18 lines
377 B
JavaScript
18 lines
377 B
JavaScript
describe('The Rooms Page', () => {
|
|
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');
|
|
});
|
|
});
|