-
Notifications
You must be signed in to change notification settings - Fork 431
/
studio.spec.ts
33 lines (30 loc) · 980 Bytes
/
studio.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import {expect, test} from '@playwright/test'
test.describe('Studio Components API:', () => {
test('studio.components.layout', async ({page}) => {
page.goto('/test/content')
await expect(
page
.getByTestId('child-parent-config-studio-layout')
.getByTestId('parent-config-studio-layout')
.getByTestId('studio-layout'),
).toBeVisible()
})
test('studio.components.navbar', async ({page}) => {
page.goto('/test/content')
await expect(
page
.getByTestId('child-parent-config-studio-navbar')
.getByTestId('parent-config-studio-navbar')
.getByTestId('studio-navbar'),
).toBeVisible()
})
test('studio.components.toolMenu', async ({page}) => {
page.goto('/test/content')
await expect(
page
.getByTestId('child-parent-config-studio-tool-menu')
.getByTestId('parent-config-studio-tool-menu')
.getByTestId('tool-collapse-menu'),
).toBeVisible()
})
})