From 423260514e4fe010646e9b0a7e9360c368a915db Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Mon, 20 May 2024 15:25:37 +0300 Subject: [PATCH] chore: e2e test --- .../customizer/hfg/hfg-secondary-menu-component.json | 1 - .../customizer/hfg/hgf-secondary-menu-component.spec.ts | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/e2e-tests/fixtures/customizer/hfg/hfg-secondary-menu-component.json b/e2e-tests/fixtures/customizer/hfg/hfg-secondary-menu-component.json index a2cb986021..735da0c0e2 100644 --- a/e2e-tests/fixtures/customizer/hfg/hfg-secondary-menu-component.json +++ b/e2e-tests/fixtures/customizer/hfg/hfg-secondary-menu-component.json @@ -7,7 +7,6 @@ "nav_menu_locations": { "primary": 176 }, - "header_palette_switch_icon_size": "{\"mobile\":16,\"tablet\":16,\"desktop\":44}", "hfg_header_layout_v2": "{\"desktop\":{\"top\":{\"left\":[],\"c-left\":[],\"center\":[],\"c-right\":[],\"right\":[{\"id\":\"secondary-menu\"}]},\"main\":{\"left\":[{\"id\":\"logo\"}],\"c-left\":[],\"center\":[],\"c-right\":[],\"right\":[]},\"bottom\":{\"left\":[],\"c-left\":[],\"center\":[],\"c-right\":[],\"right\":[]}},\"mobile\":{\"top\":{\"left\":[],\"c-left\":[],\"center\":[],\"c-right\":[],\"right\":[]},\"main\":{\"left\":[{\"id\":\"logo\"}],\"c-left\":[],\"center\":[],\"c-right\":[],\"right\":[{\"id\":\"nav-icon\"}]},\"bottom\":{\"left\":[],\"c-left\":[],\"center\":[],\"c-right\":[],\"right\":[]},\"sidebar\":[{\"id\":\"secondary-menu\"}]}}\";}", "neve_new_skin": "new" } diff --git a/e2e-tests/specs/customizer/hfg/hgf-secondary-menu-component.spec.ts b/e2e-tests/specs/customizer/hfg/hgf-secondary-menu-component.spec.ts index 2ed572270f..ed3adace73 100644 --- a/e2e-tests/specs/customizer/hfg/hgf-secondary-menu-component.spec.ts +++ b/e2e-tests/specs/customizer/hfg/hgf-secondary-menu-component.spec.ts @@ -3,7 +3,7 @@ import { setCustomizeSettings } from '../../../utils'; import secondaryMenuSetup from '../../../fixtures/customizer/hfg/hfg-secondary-menu-component.json'; test.describe('Secondary Nav', async () => { - test('Only Secondary Nav', async ({ page, request, baseURL }) => { + test('Mobile Sidebar Opening', async ({ page, request, baseURL }) => { await setCustomizeSettings('hfgSearchFormIcon', secondaryMenuSetup, { request, baseURL, @@ -14,8 +14,6 @@ test.describe('Secondary Nav', async () => { await page.getByRole('button', { name: 'Navigation Menu' }).click(); - await expect( - page.getByRole('link', { name: 'Sample Page' }) - ).toBeVisible(); // Secondary_Nav_Walker enqueues the necessary JS to make the menu work. + await expect(page.locator('#header-menu-sidebar-inner')).toBeVisible(); // Secondary_Nav_Walker enqueues the necessary JS to make the menu work. }); });