From cff75e492b4b3bb59f89e7c5b7643a0bc8c31525 Mon Sep 17 00:00:00 2001 From: dimitriyTsemma Date: Wed, 27 Nov 2024 22:17:21 +0200 Subject: [PATCH] FRW test --- .../pages/yves/cart/repositories/suite-cart-repository.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cypress/support/pages/yves/cart/repositories/suite-cart-repository.ts b/cypress/support/pages/yves/cart/repositories/suite-cart-repository.ts index e98883a4..b95d80c2 100644 --- a/cypress/support/pages/yves/cart/repositories/suite-cart-repository.ts +++ b/cypress/support/pages/yves/cart/repositories/suite-cart-repository.ts @@ -16,10 +16,6 @@ export class SuiteCartRepository implements CartRepository { cy.get('[data-qa="product-quick-add-form-submit-button"]'); findCartItemRemovalForm = (sku: string): Cypress.Chainable => { return cy.get('[action]').filter((index, element) => { - if (Cypress.env('isDynamicStoreEnabled')) { - const regex = new RegExp(`^/\\w+/\\w+/cart/async/remove/${sku}/\\w+`); - return regex.test(element.getAttribute('action') ?? ''); - } const regex = new RegExp(`^/\\w+/cart/async/remove/${sku}/\\w+`); return regex.test(element.getAttribute('action') ?? ''); }); @@ -27,10 +23,6 @@ export class SuiteCartRepository implements CartRepository { findCartItemRemovalSubmit = (sku: string): Cypress.Chainable => this.findCartItemRemovalForm(sku).find('button'); findCartItemChangeQuantityForm = (sku: string): Cypress.Chainable => { return cy.get('[action]').filter((index, element) => { - if (Cypress.env('isDynamicStoreEnabled')) { - const regex = new RegExp(`^/\\w+/\\w+/cart/async/change-quantity/${sku}$`); - return regex.test(element.getAttribute('action') ?? ''); - } const regex = new RegExp(`^/\\w+/cart/async/change-quantity/${sku}$`); return regex.test(element.getAttribute('action') ?? ''); });