describe('Survey', () => { beforeEach(() => { // todo: mock all the graphql queries and mutations // cy.exec("python ../server/manage.py prepare_bookmarks_for_cypress"); cy.viewport('macbook-15'); cy.apolloLogin('rahel.cueni', 'test'); }); it('should join class', () => { cy.visit('/me/profile'); cy.get('[data-cy=class-selection]').click(); cy.get('[data-cy=class-selection-entry]').should('have.length', 1); cy.get('[data-cy=join-class-link]').click(); cy.get('[data-cy=input-class-code]').type('XXXX'); cy.get('[data-cy=join-class]').click(); cy.get('[data-cy=class-selection]').click(); cy.get('[data-cy=class-selection-entry]').should('have.length', 2); }) })