Skip to content

Commit 442ae6a

Browse files
committed
Attempt to get playwright workig (its stubborn)
1 parent 73fd9af commit 442ae6a

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,14 @@ jobs:
4242
shell: bash
4343
run: pnpx playwright install --with-deps
4444

45+
- name: Spoof host
46+
shell: bash
47+
run: |
48+
echo "127.0.0.1 local.openshock.app" | sudo tee -a /etc/hosts
49+
4550
- name: Test
4651
shell: bash
47-
#run: pnpm test # TODO: Fix intehration tests
48-
run: pnpm test:unit
52+
run: pnpm test
4953

5054
build-container:
5155
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
test-results
22
node_modules
3+
playwright-report
34

45
# Output
56
.output

playwright.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import { defineConfig } from '@playwright/test';
22

33
export default defineConfig({
4+
reporter: process.env.CI ? 'github' : 'html',
5+
use: {
6+
baseURL: 'https://local.openshock.app:4173',
7+
trace: 'on-first-retry',
8+
},
49
webServer: {
5-
command: 'npm run build && npm run preview',
10+
command: 'pnpm run build && pnpm run preview',
611
port: 4173,
712
},
813
testDir: 'e2e',

0 commit comments

Comments
 (0)