diff --git a/package.json b/package.json index c960e2f..906a7de 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "scripts": { "test:e2e": "playwright test", - "test:e2e:headed": "playwright test --headed" + "test:e2e:headed": "playwright test --headed", + "test:e2e:smoke": "playwright test --grep @smoke" }, "devDependencies": { "@playwright/test": "1.57.0" diff --git a/src/TaxBaik.Web.Client/wwwroot/index.html b/src/TaxBaik.Web.Client/wwwroot/index.html index 19818b8..7b4f563 100644 --- a/src/TaxBaik.Web.Client/wwwroot/index.html +++ b/src/TaxBaik.Web.Client/wwwroot/index.html @@ -47,6 +47,7 @@ + + diff --git a/tests/e2e/admin-smoke.spec.ts b/tests/e2e/admin-smoke.spec.ts index c35a6d0..edfd994 100644 --- a/tests/e2e/admin-smoke.spec.ts +++ b/tests/e2e/admin-smoke.spec.ts @@ -6,7 +6,7 @@ const password = process.env.E2E_ADMIN_PASSWORD; const baseUrl = (process.env.E2E_BASE_URL ?? 'http://178.104.200.7/taxbaik').replace(/\/$/, ''); test.describe('admin smoke', () => { - test('navigates the main admin menus without circuit errors', async ({ page }) => { + test('@smoke navigates the main admin menus without circuit errors', async ({ page }) => { test.skip(!password, 'E2E_ADMIN_PASSWORD is required.'); const consoleErrors: string[] = []; diff --git a/tests/e2e/public-smoke.spec.ts b/tests/e2e/public-smoke.spec.ts index a0d7331..27d17ef 100644 --- a/tests/e2e/public-smoke.spec.ts +++ b/tests/e2e/public-smoke.spec.ts @@ -3,7 +3,7 @@ import { expect, test } from '@playwright/test'; const baseUrl = (process.env.E2E_BASE_URL ?? 'http://178.104.200.7/taxbaik').replace(/\/$/, ''); test.describe('public smoke', () => { - test('loads the main public pages with SEO basics', async ({ page }) => { + test('@smoke loads the main public pages with SEO basics', async ({ page }) => { await page.goto(baseUrl); await expect(page).toHaveTitle(/λ°±μ›μˆ™ μ„Έλ¬΄νšŒκ³„/); await expect(page).not.toHaveTitle(/κ΄€λ¦¬μž/);