From 69eb04d7dd27d2f7ba23933d4795b04a72670d4a Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Fri, 8 Apr 2022 21:57:21 -0400 Subject: [PATCH 1/2] fix(ci): match cypress env timezone to application default --- .github/workflows/test-e2e.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 3340cb76..71e5e6b9 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -19,6 +19,9 @@ jobs: - name: 'Stop default mysql service' run: sudo service mysql stop + - name: 'Match system timezone to application default' + run: sudo timedatectl set-timezone America/New_York + - name: 'Initialize Chef Habitat environment' uses: JarvusInnovations/habitat-action@action/v1 timeout-minutes: 5 From 29e02549db44ce0275a1852803dc940d3cb43d39 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Sun, 10 Apr 2022 01:09:16 -0400 Subject: [PATCH 2/2] fix(e2e): remove extra visit during login, log instead --- cypress/support/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 84ee7e21..f0684f17 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -49,7 +49,8 @@ Cypress.Commands.add('loginAs', (user, password) => { password = Cypress.env('TEST_PASSWORD') || user; } - cy.visit('/'); + cy.log(`Logging into ${user}`); + cy.request({ method: 'POST', url: '/login/?format=json',