Fixes for e2e tests
This commit is contained in:
@@ -17,9 +17,7 @@ steps:
|
||||
lint:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@latest --activate
|
||||
- pnpm install --frozen-lockfile
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run lint
|
||||
depends_on:
|
||||
- install
|
||||
@@ -27,32 +25,26 @@ steps:
|
||||
check:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@latest --activate
|
||||
- pnpm install --frozen-lockfile
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run check
|
||||
depends_on:
|
||||
- install
|
||||
- lint
|
||||
|
||||
test:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@latest --activate
|
||||
- pnpm install --frozen-lockfile
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run test:run
|
||||
depends_on:
|
||||
- install
|
||||
- check
|
||||
|
||||
build:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@latest --activate
|
||||
- pnpm install --frozen-lockfile
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run build
|
||||
depends_on:
|
||||
- install
|
||||
- test
|
||||
|
||||
build-full:
|
||||
image: node:22-bookworm-slim
|
||||
@@ -60,21 +52,16 @@ steps:
|
||||
- apt-get update
|
||||
- apt-get install -y --no-install-recommends ca-certificates libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 libnss3 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2
|
||||
- rm -rf /var/lib/apt/lists/*
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@latest --activate
|
||||
- pnpm install --frozen-lockfile
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run critical-css:install
|
||||
- pnpm run build:full
|
||||
depends_on:
|
||||
- install
|
||||
- build
|
||||
|
||||
e2e:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@latest --activate
|
||||
- pnpm install --frozen-lockfile
|
||||
- pnpm run build
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm exec playwright install chromium --with-deps
|
||||
- pnpm run test:e2e
|
||||
depends_on:
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"test:run": "vitest run",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:report": "playwright show-report --port 9324",
|
||||
"test:e2e:ui": "playwright test --ui",
|
||||
"test:e2e:snapshots:dev": "CONTENT_VARIANT=dev pnpm run build && CONTENT_VARIANT=dev pnpm exec playwright test --update-snapshots",
|
||||
"test:e2e:snapshots:bio": "CONTENT_VARIANT=bio pnpm run build && CONTENT_VARIANT=bio pnpm exec playwright test --update-snapshots",
|
||||
|
||||
@@ -22,5 +22,6 @@ export default defineConfig({
|
||||
command: 'pnpm run preview',
|
||||
url: 'http://localhost:4173',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
timeout: 120_000,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte';
|
||||
|
||||
import Footer from '$lib/components/Footer.svelte';
|
||||
import ThemeToggle from '$lib/components/ThemeToggle.svelte';
|
||||
import type { LayoutData } from './$types';
|
||||
|
||||
@@ -88,3 +89,4 @@
|
||||
<ThemeToggle />
|
||||
</header>
|
||||
{@render children()}
|
||||
<Footer />
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script lang="ts">
|
||||
import ContactPanel from '$lib/components/ContactPanel.svelte';
|
||||
import Footer from '$lib/components/Footer.svelte';
|
||||
import Hero from '$lib/components/Hero.svelte';
|
||||
import LinkGroup from '$lib/components/LinkGroup.svelte';
|
||||
import SharePanel from '$lib/components/SharePanel.svelte';
|
||||
@@ -67,7 +66,6 @@
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
<Footer />
|
||||
<SharePanel
|
||||
open={shareOpen}
|
||||
url={shareUrl}
|
||||
|
||||
Reference in New Issue
Block a user