From 1af303a09a7d29d0b19a653c003f598425d5593c Mon Sep 17 00:00:00 2001 From: Robert Field Date: Fri, 16 Feb 2024 15:30:48 +0000 Subject: [PATCH] fix: remove mobile test check for menu --- examples/algolia/e2e/product-list-page.spec.ts | 5 ----- examples/payments/e2e/product-list-page.spec.ts | 5 ----- examples/simple/e2e/product-list-page.spec.ts | 5 ----- .../files/e2e/product-list-page.spec.ts.template | 5 ----- 4 files changed, 20 deletions(-) diff --git a/examples/algolia/e2e/product-list-page.spec.ts b/examples/algolia/e2e/product-list-page.spec.ts index cc556f9c..ab300b80 100644 --- a/examples/algolia/e2e/product-list-page.spec.ts +++ b/examples/algolia/e2e/product-list-page.spec.ts @@ -23,11 +23,6 @@ test("should be able to use quick view to view full product details", async ({ (cookie) => cookie.name === "_store_ep_cart", )?.value; - /* Mobile - open hamburger menu */ - if (isMobile) { - await page.getByRole("button", { name: "Menu" }).click(); - } - const nav = await buildSiteNavigation(client); const firstNavItem = nav[0]; diff --git a/examples/payments/e2e/product-list-page.spec.ts b/examples/payments/e2e/product-list-page.spec.ts index cc556f9c..ab300b80 100644 --- a/examples/payments/e2e/product-list-page.spec.ts +++ b/examples/payments/e2e/product-list-page.spec.ts @@ -23,11 +23,6 @@ test("should be able to use quick view to view full product details", async ({ (cookie) => cookie.name === "_store_ep_cart", )?.value; - /* Mobile - open hamburger menu */ - if (isMobile) { - await page.getByRole("button", { name: "Menu" }).click(); - } - const nav = await buildSiteNavigation(client); const firstNavItem = nav[0]; diff --git a/examples/simple/e2e/product-list-page.spec.ts b/examples/simple/e2e/product-list-page.spec.ts index cc556f9c..ab300b80 100644 --- a/examples/simple/e2e/product-list-page.spec.ts +++ b/examples/simple/e2e/product-list-page.spec.ts @@ -23,11 +23,6 @@ test("should be able to use quick view to view full product details", async ({ (cookie) => cookie.name === "_store_ep_cart", )?.value; - /* Mobile - open hamburger menu */ - if (isMobile) { - await page.getByRole("button", { name: "Menu" }).click(); - } - const nav = await buildSiteNavigation(client); const firstNavItem = nav[0]; diff --git a/packages/d2c-schematics/product-list-page/files/e2e/product-list-page.spec.ts.template b/packages/d2c-schematics/product-list-page/files/e2e/product-list-page.spec.ts.template index cc556f9c..ab300b80 100644 --- a/packages/d2c-schematics/product-list-page/files/e2e/product-list-page.spec.ts.template +++ b/packages/d2c-schematics/product-list-page/files/e2e/product-list-page.spec.ts.template @@ -23,11 +23,6 @@ test("should be able to use quick view to view full product details", async ({ (cookie) => cookie.name === "_store_ep_cart", )?.value; - /* Mobile - open hamburger menu */ - if (isMobile) { - await page.getByRole("button", { name: "Menu" }).click(); - } - const nav = await buildSiteNavigation(client); const firstNavItem = nav[0];