Skip to content

Commit

Permalink
Update playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
Exelord committed Nov 3, 2023
1 parent d0b328b commit 838cae1
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ dist-ssr
*.local
coverage
/test-results/
/blob-report/
/playwright-report/
/playwright/.cache/
17 changes: 16 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
},
"devDependencies": {
"@playwright/experimental-ct-solid": "^1.39.0",
"@playwright/test": "^1.39.0",
"@types/node": "^20.8.10",
"@vitest/browser": "^0.34.6",
"@vitest/coverage-c8": "^0.33.0",
"@vitest/ui": "^0.34.6",
"npm-run-all": "^4.1.5",
"playwright": "^1.39.0",
"release-it": "^16.2.1",
"solid-js": "^1.7.0",
"typescript": "^5.2.2",
Expand Down
13 changes: 4 additions & 9 deletions playwright-ct.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import type { PlaywrightTestConfig } from "@playwright/experimental-ct-solid";
import { devices } from "@playwright/experimental-ct-solid";
import { defineConfig, devices } from "@playwright/experimental-ct-solid";

/**
* See https://playwright.dev/docs/test-configuration.
*/
const config: PlaywrightTestConfig = {
export default defineConfig({
testDir: "./tests/browser",
/* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */
snapshotDir: "./__snapshots__",
Expand Down Expand Up @@ -33,11 +32,7 @@ const config: PlaywrightTestConfig = {
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
},
use: { ...devices["Desktop Chrome"] },
},
],
};

export default config;
});
2 changes: 1 addition & 1 deletion playwright/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.ts"></script>
<script type="module" src="./index.tsx"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions playwright/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Import styles, initialize component theme here.
// import '../src/common.css';

0 comments on commit 838cae1

Please sign in to comment.