Skip to content

Commit

Permalink
fix: ci chromium installs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Apr 18, 2024
1 parent 510df4f commit b4f8387
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"drush": "SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite DRUSH_OPTIONS_URI=http://127.0.0.1:8888 vendor/bin/drush",
"silverback": "SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite SB_ADMIN_USER=admin SB_ADMIN_PASS=admin vendor/bin/silverback",
"drupal-install": "SB_SETUP=1 pnpm silverback setup --profile minimal && pnpm content:import && pnpm drush php-eval 'node_access_rebuild();' && rm -rf install-cache.zip && pnpm fix-premissions && pnpm ensure-working-db",
"export-webforms": "pnpm run --filter '@custom-tests/e2e' download-browsers && pnpm run --filter '@custom-tests/e2e' webform-snapshots",
"export-webforms": "pnpm run --filter '@custom-tests/e2e' prep && pnpm run --filter '@custom-tests/e2e' webform-snapshots",
"start": "cd web; SB_ENVIRONMENT=1 SIMPLETEST_DB=sqlite://localhost/sites/default/files/.sqlite DRUSH_OPTIONS_URI=http://127.0.0.1:8888 php -S 0.0.0.0:8888 .ht.router.php # no drush to avoid the drush server timeout",
"dev": "pnpm start",
"clear": "pnpm drush cr",
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "ISC",
"type": "module",
"scripts": {
"prep": "playwright install chromium",
"test:static": "tsc --noEmit && eslint '**/*.{ts,tsx,js,jsx}' --ignore-path='./.gitignore'",
"test:integration:drupal": "playwright test --config playwright.config.drupal.ts",
"test:integration:decap": "playwright test --config playwright.config.decap.ts",
Expand Down
7 changes: 5 additions & 2 deletions tests/e2e/turbo.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"extends": ["//"],
"pipeline": {
"prep": {
"cache": false
},
"test:integration:decap": {
"dependsOn": ["@custom/website#build"],
"dependsOn": ["@custom/website#build", "prep"],
"env": ["PLAYWRIGHT_WEBSITE_URL"],
"inputs": ["specs/decap/**", "playwright.config.decap.ts"]
},
"test:integration:drupal": {
"dependsOn": ["@custom/website#build"],
"dependsOn": ["@custom/website#build", "prep"],
"env": ["PLAYWRIGHT_WEBSITE_URL", "PLAYWRIGHT_CMS_URL"],
"inputs": ["specs/drupal/**", "playwright.config.drupal.ts"]
}
Expand Down

0 comments on commit b4f8387

Please sign in to comment.