Skip to content

Commit 7849893

Browse files
Merge pull request #1877 from appwrite/ci-test-e2e
tests: fix e2e env
2 parents fbba84b + f472588 commit 7849893

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install dependencies
6363
run: pnpm install --frozen-lockfile
6464
- name: Install playwright dependencies
65-
run: pnpm exec playwright install && pnpm exec playwright install-deps
65+
run: pnpm exec playwright install --with-deps chromium
6666
- name: Run tests
6767
env:
6868
PUBLIC_APPWRITE_ENDPOINT: ${{ vars.PUBLIC_APPWRITE_ENDPOINT }}

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ terraform/**/.env
2222
terraform/**/**/*.tfstate*
2323
/.cache
2424
/test-results
25-
26-
# test e2e

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,16 @@
9696
"vite-plugin-image-optimizer": "^1.1.8",
9797
"vite-plugin-manifest-sri": "^0.2.0",
9898
"vitest": "^1.6.0"
99+
},
100+
"pnpm": {
101+
"onlyBuiltDependencies": [
102+
"@parcel/watcher",
103+
"@sentry/cli",
104+
"core-js",
105+
"esbuild",
106+
"sharp",
107+
"svelte-preprocess",
108+
"ttf2woff2"
109+
]
99110
}
100111
}

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { PlaywrightTestConfig } from '@playwright/test';
22

33
const config: PlaywrightTestConfig = {
44
webServer: {
5-
command: 'npm run dev',
5+
command: 'pnpm run dev',
66
port: 5173
77
},
88
fullyParallel: true,

0 commit comments

Comments
 (0)