Skip to content

Commit

Permalink
Add cache, remove projects
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Nov 15, 2023
1 parent f3fc1e8 commit dbcc228
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[[context.deploy-preview.plugins]]
package = "/plugins/test"
package = "netlify-plugin-playwright-cache"
package = "/plugins/test"
7 changes: 7 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"jest-environment-jsdom": "^29.7.0",
"msw": "^1.2.3",
"msw-storybook-addon": "^1.8.0",
"netlify-plugin-playwright-cache": "^0.0.1",
"playwright": "^1.39.0",
"prettier": "^3.0.2",
"prettier-plugin-svelte": "^3.0.3",
Expand Down
4 changes: 2 additions & 2 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export default defineConfig({
},

// Options specific to each project.
/*
projects: [
{
name: "chromium",
use: devices["Desktop Chrome"],
},
/*
{
name: "firefox",
use: devices["Desktop Firefox"],
Expand All @@ -49,6 +49,6 @@ export default defineConfig({
name: "Mobile Safari",
use: devices["iPhone 12"],
},
*/
],
*/
});
2 changes: 1 addition & 1 deletion plugins/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export async function onSuccess({ utils }) {
console.log("Installing Playwright dependencies");
await utils.run("playwright", ["install", "--with-deps", "chromium"]);
await utils.run("playwright", ["install"]);

console.log("Running Playwright tests");
await utils.run("playwright", ["test"]);
Expand Down

0 comments on commit dbcc228

Please sign in to comment.