From b14819af3feaa16361c92803f69c0a6e9a26d406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 9 Sep 2025 22:35:19 +0800 Subject: [PATCH] =?UTF-8?q?test(e2e):=20=E6=B7=BB=E5=8A=A0=20AppLayout=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e/playwright/vue.spec.ts | 7 +++++++ src/layouts/naive-ui/AppLayout.vue | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/e2e/playwright/vue.spec.ts b/e2e/playwright/vue.spec.ts index 6918579..c28fb34 100644 --- a/e2e/playwright/vue.spec.ts +++ b/e2e/playwright/vue.spec.ts @@ -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') + }) }) diff --git a/src/layouts/naive-ui/AppLayout.vue b/src/layouts/naive-ui/AppLayout.vue index 4623708..13e6eb0 100644 --- a/src/layouts/naive-ui/AppLayout.vue +++ b/src/layouts/naive-ui/AppLayout.vue @@ -1,7 +1,7 @@