Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency backstopjs to v6.3.3 #100

Merged
merged 3 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ on:
- 'README.md'
jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 20
- name: Install dependencies
run: yarn install
- name: Build
Expand Down
6 changes: 4 additions & 2 deletions backstop.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@
"ci_report": "screenshots/ci_report"
},
"report": ["CI"],
"engine": "puppeteer",
"onBeforeScript": "playwright/onBefore.js",
"onReadyScript": "playwright/onReady.js",
"engine": "playwright",
"engineOptions": {
"args": ["--no-sandbox"]
"browser": "chromium"
},
"dockerCommandTemplate": "docker run --rm -i --network host --mount type=bind,source=\"{cwd}\",target=/src backstopjs/backstopjs:{version} {backstopCommand} {args}",
"asyncCaptureLimit": 5,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@semantic-release/git": "9.0.1",
"@semantic-release/npm": "7.1.3",
"autoprefixer": "10.4.16",
"backstopjs": "6.0.4",
"backstopjs": "6.3.3",
"bootstrap": "5.1.3",
"browserslist-config-cozy": "0.5.0",
"clean-css-cli": "5.5.2",
Expand Down
9 changes: 2 additions & 7 deletions screenshots/makeDarkMode.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// https://github.com/microsoft/TypeScript-Website/blob/v2/packages/typescriptlang-org/scripts/backstop/makeDarkMode.js
// https://playwright.dev/docs/api/class-page#page-emulate-media
module.exports = async (page, scenario) => {
console.log("SWITCHING TO DARK for " + scenario.label)

await page.emulateMediaFeatures([
{
name: "prefers-color-scheme",
value: "dark",
},
])
await page.emulateMedia({ colorScheme: 'dark' });
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/reference/docs_Typography_0_document_0_reference.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading