Skip to content

Commit

Permalink
chore: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed May 20, 2024
1 parent b908892 commit 4232605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
});
});

0 comments on commit 4232605

Please sign in to comment.