17 lines
440 B
JavaScript
17 lines
440 B
JavaScript
describe('The Rooms Page', () => {
|
|
// todo: mock all the graphql queries and mutations
|
|
it('goes to the rooms page', () => {
|
|
cy.apolloLogin('ross.geller', 'test');
|
|
cy.visit('/rooms');
|
|
|
|
cy.get('[data-cy=add-room]').should('exist');
|
|
});
|
|
|
|
it('add room should not exist for student', () => {
|
|
cy.apolloLogin('rachel.green', 'test');
|
|
cy.visit('/rooms');
|
|
|
|
cy.get('[data-cy=add-room]').should('not.exist');
|
|
});
|
|
});
|