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