From a8427fe9b57e0c39742b9a08b9e6733fd53cec59 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Tue, 23 Apr 2024 09:04:14 +0200 Subject: [PATCH] NTR: update waiting timer --- .../cypress/support/actions/admin/AdminLoginAction.js | 9 ++------- .../cypress/support/actions/admin/AdminPluginAction.js | 6 ++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/tests/Cypress/cypress/support/actions/admin/AdminLoginAction.js b/tests/Cypress/cypress/support/actions/admin/AdminLoginAction.js index baf876a86..d64142025 100644 --- a/tests/Cypress/cypress/support/actions/admin/AdminLoginAction.js +++ b/tests/Cypress/cypress/support/actions/admin/AdminLoginAction.js @@ -8,18 +8,13 @@ export default class AdminLoginAction { // increase our viewport for admin // otherwise we don't see a lot (page height) cy.viewport(1920, 1500); - - - - cy.visit('/admin'); cy.get('#sw-field--username').type('admin'); cy.get('#sw-field--password').type('shopware'); - - cy.intercept('/admin').as('admin'); + cy.get('.sw-button').click(); - cy.wait('@admin'); + cy.wait(4000); } } diff --git a/tests/Cypress/cypress/support/actions/admin/AdminPluginAction.js b/tests/Cypress/cypress/support/actions/admin/AdminPluginAction.js index a4c2c9e0a..9b6be1855 100644 --- a/tests/Cypress/cypress/support/actions/admin/AdminPluginAction.js +++ b/tests/Cypress/cypress/support/actions/admin/AdminPluginAction.js @@ -9,20 +9,18 @@ export default class AdminPluginAction { * */ openPluginConfiguration() { - cy.intercept('**').as('admin'); if (shopware.isVersionGreaterEqual('6.4')) { cy.visit('/admin#/sw/extension/config/MolliePayments'); } else { cy.visit('/admin#/sw/plugin/settings/MolliePayments'); } - cy.wait('@admin'); + cy.wait(4000); } savePlugConfiguration() { - cy.intercept('**').as('admin'); cy.get('.sw-extension-config__save-action').click(); - cy.wait('@admin'); + cy.wait(4000); } }