test(e2e): 添加 AppLayout 组件的测试用例

This commit is contained in:
严浩 committed 2025-09-09 22:50:57 +08:00
1 parent 394294904d
commit 56d8a3aa49
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -50,4 +50,11 @@ test.describe('Vue App', () => {
await expect(button).toHaveText('Name from API is: Unknown')
})
test('app-layout is present', async ({ page }) => {
await page.goto('/')
const appLayout = page.locator('.app-layout')
await expect(appLayout).toBeVisible()
await expect(appLayout).toContainText('AppLayout')
})
})