Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
chore(ci): Use firefox from CI (#28)
Browse files Browse the repository at this point in the history
Closes #25
  • Loading branch information
kdy1 authored Aug 24, 2023
1 parent 8798232 commit 3e8c760
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ jobs:
- run: |
chromedriver --url-base=/wd/hub &
- uses: browser-actions/setup-firefox@v1
- uses: browser-actions/setup-edge@v1

- name: Test
run: pnpm turbo run test:ci
2 changes: 1 addition & 1 deletion packages/jest-expect-image/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jest-expect-image",
"packageManager": "[email protected]",
"version": "0.1.1",
"version": "0.1.2",
"description": "",
"main": "lib/index.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions packages/next-image-snapshot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("User sign up page", () => {
dir: "./examples/next-app",
dev: true,
});
browsers = await Browsers.all(server, ["chrome", "firefox", "safari"], {
browsers = await Browsers.all(server, ["chrome", "firefox", "edge"], {
common: {
headless: true,
},
Expand All @@ -35,7 +35,7 @@ describe("User sign up page", () => {

const screenshot = await browser.driver.takeScreenshot();

expect(screenshot).toMatchImageSnapshot(browser.name);
expect(screenshot).toMatchImageSnapshot();
}
});
});
Expand All @@ -54,7 +54,7 @@ describe("User sign up page", () => {
dir: "./examples/next-app",
dev: true,
});
using browsers = await Browsers.all(server, ["chrome", "firefox", "safari"], {
using browsers = await Browsers.all(server, ["chrome", "firefox", "edge"], {
common: {
headless: true,
},
Expand All @@ -65,7 +65,7 @@ describe("User sign up page", () => {

const screenshot = await browser.driver.takeScreenshot();

expect(screenshot).toMatchImageSnapshot(browser.name);
expect(screenshot).toMatchImageSnapshot();
}
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/next-image-snapshot/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "next-image-snapshot",
"packageManager": "[email protected]",
"version": "0.1.1",
"version": "0.1.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions packages/next-image-snapshot/tests/browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ describe("Browser", () => {
dir: "./examples/next-app",
dev: true,
});
browsers = await Browsers.all(server, ["chrome"], {
browsers = await Browsers.all(server, ["chrome", "firefox"], {
common: {
headless: true,
size: {
width: 1080,
height: 720,
},
},
chrome: (options) => options.headless(),
firefox: (options) => options.headless(),
});
});

Expand Down

0 comments on commit 3e8c760

Please sign in to comment.