Skip to content

Commit

Permalink
test(docs-e2e): add docs sections button test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyFriesenGitHub committed Aug 29, 2024
1 parent 257b430 commit 69e9a2d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/docs-e2e/src/docs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ test.describe('should contain hamburger menu elements', {
await docsLayoutPage.hamburgerIcon.click()
})

test('should have docs pages section dropdown menu visible', async ({ docsLayoutPage }) => {
await expect(docsLayoutPage.sectionsDropdownButton).toBeVisible()
})

test('should have website button visible from website dropdown', async ({ docsLayoutPage }) => {
await docsLayoutPage.websiteDropdownButton.click()
await expect(docsLayoutPage.mobileWebsiteLink).toBeVisible()
Expand Down Expand Up @@ -450,6 +454,10 @@ test.describe('should contain tablet sidebar elements', {
await docsLayoutPage.page.setViewportSize({ width: TABLET_WIDTH, height: TABLET_HEIGHT })
})

test('should have docs pages section dropdown menu visible', async ({ docsLayoutPage }) => {
await expect(docsLayoutPage.sectionsDropdownButton).toBeVisible()
})

test('should contain sidebar toggle in tablet sidebar', async ({ docsLayoutPage }) => {
await expect(docsLayoutPage.sideBarToggle).toBeVisible()
})
Expand Down

0 comments on commit 69e9a2d

Please sign in to comment.