From fb65a3f85236b2be8787ee1fb62298ff995fb2c8 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 7 Jul 2020 01:46:42 +0300 Subject: [PATCH] Fix E2E tests configuration --- .../cypress/integration/auth/forgot-password.test.ts | 2 +- tests-e2e/cypress/plugins/index.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tests-e2e/cypress/integration/auth/forgot-password.test.ts b/tests-e2e/cypress/integration/auth/forgot-password.test.ts index 10140bb..f9aed2a 100644 --- a/tests-e2e/cypress/integration/auth/forgot-password.test.ts +++ b/tests-e2e/cypress/integration/auth/forgot-password.test.ts @@ -178,7 +178,7 @@ describe('Forgot / reset password', () => { cy.findByTestId('auth-controls-secondary').contains('Contact support').click(); cy.findByTestId('feedbackPopup').should('be.visible'); - cy.findByTestId('feedback-popup-close').click(); + cy.findByTestId('feedbackPopup').findByTestId('popup-close').click(); cy.findByTestId('feedbackPopup').should('not.be.visible'); cy.get('[name=key]').type(key); diff --git a/tests-e2e/cypress/plugins/index.js b/tests-e2e/cypress/plugins/index.js index f413ad9..68c635b 100644 --- a/tests-e2e/cypress/plugins/index.js +++ b/tests-e2e/cypress/plugins/index.js @@ -41,7 +41,13 @@ module.exports = (on) => { options: { envName: 'webpack', cacheDirectory: true, - ...config, + // We don't have the webpack's API object, so just provide necessary methods + ...config({ + env() { + return 'development'; + }, + cache() {}, + }), }, }, ],