Skip to content

Commit 23200be

Browse files
add screenshot for dark mode
add checking back theme switching in test
1 parent e36df07 commit 23200be

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
191 Bytes
Loading

packages/devextreme-cli/testing/app-template.test.shared.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ module.exports = (env) => {
8787
});
8888
}
8989

90-
async function compareThemeModeSnapshot(name) {
90+
async function compareThemeModeSnapshot(name, mode) {
9191
await page.click('.dx-button.theme-button');
9292
await page.waitForTimeout(500);
9393

9494
const image = await takeScreenshot();
9595

96-
compareSnapshot(image, name + '-dark');
96+
compareSnapshot(image, name + (mode === 'light' ? '' : '-dark'));
9797
}
9898

9999
async function hideScroll() {
@@ -173,7 +173,9 @@ module.exports = (env) => {
173173

174174
compareSnapshot(image, 'profile');
175175

176-
await compareThemeModeSnapshot('profile');
176+
await compareThemeModeSnapshot('profile', 'dark');
177+
178+
await compareThemeModeSnapshot('profile', 'light');
177179
});
178180

179181
it('Tasks view', async() => {

0 commit comments

Comments
 (0)