From 0ac0f3d610fd7de0ab24dc6ee4f94d060689c672 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 27 Feb 2020 16:59:00 +0100 Subject: [PATCH] Fix cypress test --- client/cypress/integration/join-class.spec.js | 10 ++++++++-- client/src/components/HeaderBar.vue | 2 +- client/src/components/profile/ProfileSidebar.vue | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/client/cypress/integration/join-class.spec.js b/client/cypress/integration/join-class.spec.js index b8306154..38eb04ac 100644 --- a/client/cypress/integration/join-class.spec.js +++ b/client/cypress/integration/join-class.spec.js @@ -34,7 +34,9 @@ describe('Join Class', () => { cy.visit('/me/profile'); - cy.get('[data-cy=user-widget-avatar]').click(); + cy.get('[data-cy=header-user-widget]').within(() => { + cy.get('[data-cy=user-widget-avatar]').click(); + }); cy.get('[data-cy=class-selection]').click(); cy.get('[data-cy=class-selection-entry]').should('have.length', 1); @@ -42,7 +44,11 @@ describe('Join Class', () => { cy.get('[data-cy=input-class-code]').type('XXXX'); cy.get('[data-cy=join-class]').click(); - + + cy.get('[data-cy=header-user-widget]').within(() => { + cy.get('[data-cy=user-widget-avatar]').click(); + }); + cy.get('[data-cy=class-selection]').click(); cy.get('[data-cy=class-selection-entry]').should('have.length', 2); }) diff --git a/client/src/components/HeaderBar.vue b/client/src/components/HeaderBar.vue index 6416615e..42e660a2 100644 --- a/client/src/components/HeaderBar.vue +++ b/client/src/components/HeaderBar.vue @@ -7,7 +7,7 @@
- +
diff --git a/client/src/components/profile/ProfileSidebar.vue b/client/src/components/profile/ProfileSidebar.vue index c2a8225d..9b806b26 100644 --- a/client/src/components/profile/ProfileSidebar.vue +++ b/client/src/components/profile/ProfileSidebar.vue @@ -15,7 +15,7 @@
- Zugangscode eingeben + Zugangscode eingeben
Logout