test(e2e): 添加 AppLayout 组件的测试用例
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div class="app-layout">
|
||||
<div>AppLayout</div>
|
||||
<router-view />
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user