Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
}
},
"postCreateCommand": {
"playwright": "npx --yes playwright install --with-deps"
"playwright": "npx --yes playwright install --with-deps chromium"
},
"containerEnv": {
"PLAYWRIGHT_HTML_HOST": "0.0.0.0",
"PUBLIC_WORKFLOWS_DIR": "/workspaces/studio/workflows",
"HOST": "0.0.0.0"
},
"forwardPorts": [
5173
5173,
9323
]
}
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,24 @@ jobs:
- name: Checking
run: npm run check

e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- uses: actions/setup-node@v6
with:
node-version: lts/*

- name: Install dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: End-to-end tests
run: npm run test:e2e

helm:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -151,6 +169,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- commitlint
- e2e
- helm
- pre-commit
- test
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"prepare": "svelte-kit sync || echo ''",
"start": "node build",
"test:e2e": "playwright test",
"test:e2e:report": "playwright show-report --host 0.0.0.0",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
"test:e2e:debug": "playwright test --debug"
Expand Down
6 changes: 3 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default defineConfig({
reporter: 'html',

use: {
baseURL: 'http://localhost:5173',
baseURL: 'http://127.0.0.1:5173',
trace: 'on-first-retry',
},

Expand All @@ -39,8 +39,8 @@ export default defineConfig({

webServer: {
command: 'npm run dev',
url: 'http://localhost:5173',
reuseExistingServer: true,
url: 'http://127.0.0.1:5173',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});
Loading