Skip to content

Commit 0cdd465

Browse files
committed
add dark mode snapshots
1 parent 2d09476 commit 0cdd465

File tree

6 files changed

+2233
-2218
lines changed

6 files changed

+2233
-2218
lines changed

.yarn/releases/yarn-3.2.0.cjs

Lines changed: 0 additions & 785 deletions
This file was deleted.

.yarn/releases/yarn-3.2.1.cjs

Lines changed: 786 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ plugins:
88
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
99
spec: "@yarnpkg/plugin-interactive-tools"
1010

11-
yarnPath: .yarn/releases/yarn-3.2.0.cjs
11+
yarnPath: .yarn/releases/yarn-3.2.1.cjs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@
7979
"printWidth": 80,
8080
"tabWidth": 2
8181
},
82-
"packageManager": "[email protected].0"
82+
"packageManager": "[email protected].1"
8383
}

website/snapshots.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ module.exports = () => {
1313
return {
1414
name,
1515
url: `${baseUrl}${path}`,
16+
additionalSnapshots: [
17+
{
18+
suffix: ' (Dark Mode)',
19+
execute: {
20+
// toggle dark-mode
21+
afterNavigation() {
22+
document
23+
.querySelector('[title^="Switch between dark and light mode"]')
24+
// @ts-ignore
25+
?.click();
26+
},
27+
},
28+
},
29+
],
1630
};
1731
});
1832
};

0 commit comments

Comments
 (0)