mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
840 B
31 lines
840 B
2 years ago
|
describe('test multi sidebar sort root', () => {
|
||
|
beforeAll(async () => {
|
||
|
await goto('/frontmatter/multiple-levels-outline')
|
||
|
})
|
||
|
|
||
|
test('using / sidebar', async () => {
|
||
|
const sidebarLocator = page.locator('.VPSidebarGroup .title-text')
|
||
|
|
||
|
const sidebarContent = await sidebarLocator.allTextContents()
|
||
|
expect(sidebarContent).toEqual([
|
||
|
'Frontmatter',
|
||
|
'& <Text Literals &> code',
|
||
|
'Static Data',
|
||
|
'Multi Sidebar Test'
|
||
|
])
|
||
|
})
|
||
|
})
|
||
|
|
||
|
describe('test multi sidebar sort order', () => {
|
||
|
beforeAll(async () => {
|
||
|
await goto('/multi-sidebar/')
|
||
|
})
|
||
|
|
||
|
test('using /multi-sidebar/ sidebar', async () => {
|
||
|
const sidebarLocator = page.locator('.VPSidebarGroup .title-text')
|
||
|
|
||
|
const sidebarContent = await sidebarLocator.allTextContents()
|
||
|
expect(sidebarContent).toEqual(['Multi Sidebar'])
|
||
|
})
|
||
|
})
|