From 83721de7ea11c08743a5abef48dd39721a61a9ec Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 15 Apr 2019 12:56:55 +0200 Subject: [PATCH] Fix cypress test --- client/cypress/integration/current-module.spec.js | 2 ++ client/cypress/integration/solutions.spec.js | 1 + client/src/components/HeaderBar.vue | 2 +- client/src/components/MobileHeader.vue | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/cypress/integration/current-module.spec.js b/client/cypress/integration/current-module.spec.js index 75592e8a..73c77c5b 100644 --- a/client/cypress/integration/current-module.spec.js +++ b/client/cypress/integration/current-module.spec.js @@ -2,6 +2,8 @@ describe('Current Module', () => { it('is set correctly', () => { // cy.route('POST', '/api/graphql/').as('graphQL'); cy.startGraphQLCapture(); + cy.viewport('macbook-15'); + cy.login('nico.zickgraf', 'test'); cy.visit('/module/lohn-und-budget'); diff --git a/client/cypress/integration/solutions.spec.js b/client/cypress/integration/solutions.spec.js index 8d5e475b..bf6d9c97 100644 --- a/client/cypress/integration/solutions.spec.js +++ b/client/cypress/integration/solutions.spec.js @@ -19,6 +19,7 @@ describe('Solutions', () => { // cy.wait('@graphQL'); // }); // cy.logout(); + cy.viewport('macbook-15'); cy.login('rahel.cueni', 'test'); cy.visit('/module/lohn-und-budget'); diff --git a/client/src/components/HeaderBar.vue b/client/src/components/HeaderBar.vue index 87cdd0cc..acafbe8d 100644 --- a/client/src/components/HeaderBar.vue +++ b/client/src/components/HeaderBar.vue @@ -1,7 +1,7 @@