Skip to content
Snippets Groups Projects
Unverified Commit 7313cf72 authored by Joel Jeremy Marquez's avatar Joel Jeremy Marquez Committed by GitHub
Browse files

[Maintenance] Add midnight theme VRT screenshots (#2619)


* Add midnight theme VRT screenshots

* Release notes

* Midnight VRT screenshots

* Update packages/desktop-client/playwright.config.js

Co-authored-by: default avatarMatiss Janis Aboltins <matiss@mja.lv>

* VRT

---------

Co-authored-by: default avatarMatiss Janis Aboltins <matiss@mja.lv>
parent 978a658c
No related branches found
No related tags found
No related merge requests found
Showing
with 15 additions and 0 deletions
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -32,6 +32,15 @@ expect.extend({
return darkmode;
}
// Switch to midnight theme and check
await locator.evaluate(() => window.Actual.setTheme('midnight'));
const midnightMode = await expect(locator).toHaveScreenshot(config);
// Assert on
if (midnightMode && !midnightMode.pass) {
return midnightMode;
}
// Switch back to lightmode
await locator.evaluate(() => window.Actual.setTheme('light'));
return {
......
---
category: Maintenance
authors: [joel-jeremy]
---
Add midnight theme VRT screenshots.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment