Skip to content

Commit

Permalink
fix(fjagejs): adding playwright install before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
notthetup committed Jan 22, 2024
1 parent cde0dd9 commit 0be3713
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gateways/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"scripts": {
"build": "npx rimraf -rf dist/ && eslint src/*.js && rollup --silent -c rollup.config.js",
"pretest": "npx playwright install-deps && node test/spec/create-spec.cjs",
"pretest": "npx playwright install --with-deps && node test/spec/create-spec.cjs",
"test": "node test/run-tests.cjs",
"docs": "documentation build src/fjage.js -f html --github --document-exported -o ../../docs/jsdoc",
"clean": "npx rimraf -rf dist/"
Expand Down
19 changes: 19 additions & 0 deletions gateways/js/playwright.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
/* Test against desktop browsers */
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
}
],
});

0 comments on commit 0be3713

Please sign in to comment.