5db4e9a491
A basic test for each of the menu areas fixes TLD-2251 - [x] `tests` — Changes to any test code only[^2] ### Release Notes - Add a brief release note for your PR here. --------- Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
20 lines
513 B
TypeScript
20 lines
513 B
TypeScript
import { expect } from '@playwright/test'
|
|
import { setup } from '../shared-e2e'
|
|
import test from './fixtures/fixtures'
|
|
|
|
test.describe('page menu', () => {
|
|
test.beforeEach(setup)
|
|
|
|
test('you can open and close the page menu', async ({ pageMenu }) => {
|
|
const { pagemenuButton, header } = pageMenu
|
|
await expect(header).toBeHidden()
|
|
await pagemenuButton.click()
|
|
await expect(header).toBeVisible()
|
|
await pagemenuButton.click()
|
|
await expect(header).toBeHidden()
|
|
})
|
|
|
|
// ...
|
|
// More tests here
|
|
// ...
|
|
})
|