Compare commits

...

2 Commits

Author SHA1 Message Date
严浩
b14819af3f test(e2e): 添加 AppLayout 组件的测试用例 2025-09-09 22:57:07 +08:00
严浩
7824ea3823 build: 移除 package.json 中的 packageManager 字段 2025-09-09 22:57:07 +08:00
3 changed files with 8 additions and 2 deletions

View File

@@ -50,4 +50,11 @@ test.describe('Vue App', () => {
await expect(button).toHaveText('Name from API is: Unknown') 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')
})
}) })

View File

@@ -1,5 +1,4 @@
{ {
"packageManager": "pnpm@10.15.1",
"name": "vue-ts-example-2025", "name": "vue-ts-example-2025",
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,

View File

@@ -1,7 +1,7 @@
<script setup lang="ts"></script> <script setup lang="ts"></script>
<template> <template>
<div> <div class="app-layout">
<div>AppLayout</div> <div>AppLayout</div>
<router-view /> <router-view />
</div> </div>