From 12f3c0829581d187fd63cb45542b6c9997fc8bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=A4fer?= Date: Fri, 22 Sep 2023 15:03:52 +0200 Subject: [PATCH 1/2] Update Node Variable description (#114) At least for me, it only works, when I run this command without semicolon. --- cypress.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress.config.js b/cypress.config.js index d0a5bd6..1826fec 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -3,7 +3,7 @@ const {tagify} = require('cypress-tags'); const fs = require('fs'); const envConfig = fs.existsSync('./cypress.env.json') ? require('./cypress.env.json') : {}; -// Run "NODE_ENV=develop; npx cypress run" to run tests locally +// Run "NODE_ENV=develop npx cypress run" to run tests locally const defaultBaseUrl = process.env.NODE_ENV === 'develop' ? 'http://cypress.magento2.localhost' : 'https://example.com/'; // Sometimes our local envs are slow due to dev mode. Raising the timeout decreases flakiness From a5fc9993a36baec69f5554db007d2b568516913f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=A4fer?= Date: Wed, 11 Oct 2023 16:10:37 +0200 Subject: [PATCH 2/2] Remove legacy code This seems to be not needed anymore, right? --- cypress/integration/luma/user/account.spec.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cypress/integration/luma/user/account.spec.js b/cypress/integration/luma/user/account.spec.js index 678b812..8b14880 100644 --- a/cypress/integration/luma/user/account.spec.js +++ b/cypress/integration/luma/user/account.spec.js @@ -27,11 +27,6 @@ describe('Account activities', () => { Magento2RestApi.createCustomerAccount(account.customer) Account.login(account.customer.customer.email, account.customer.password) Account.createAddress(account.customerInfo) - // We need to logout or the beforeEach will fail - if(isMobile()) { - cy.wait(2000) - } - cy.wait(2500) }) after(() => {