fix: openNav selector in test helpers

This commit is contained in:
Paul Popus
2024-03-14 13:11:12 -03:00
parent 777e2744c4
commit 415ba26efe

View File

@@ -63,7 +63,7 @@ export async function openNav(page: Page): Promise<void> {
// use the `--nav-open` modifier class to check if the nav is open // use the `--nav-open` modifier class to check if the nav is open
// this will prevent clicking nav links that are bleeding off the screen // this will prevent clicking nav links that are bleeding off the screen
if (await page.locator('.template-default.template-default--nav-open').isVisible()) return if (await page.locator('.template-default.template-default--nav-open').isVisible()) return
await page.locator('#nav-toggler').click() await page.locator('.nav-toggler').click()
await expect(page.locator('.template-default.template-default--nav-open')).toBeVisible() await expect(page.locator('.template-default.template-default--nav-open')).toBeVisible()
} }