Skip to content

Commit

Permalink
feat: GAUD-6130 - Remove doc site specific configs (#352)
Browse files Browse the repository at this point in the history
* Revert "feat: GAUD-6130 - Don't replace set testsFinishTimeout value from config (#347)"

This reverts commit 83de73c.

* Revert "feat: GAUD-6130 - Allow to override deviceScaleFactor, only use 2 for vdiff tests (not unit) (#340)"

This reverts commit 09e5f3a.

* Keep using scale 1 for non-vdiff tests
  • Loading branch information
svanherk committed Mar 28, 2024
1 parent 5387141 commit da19afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/wtr-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class WTRConfig {
files: this.#pattern
});
} else if (group === 'vdiff') {
if (!config.testsFinishTimeout) config.testsFinishTimeout = 5 * 60 * 1000;
config.testsFinishTimeout = 5 * 60 * 1000;

config.reporters ??= [ defaultReporter() ];
config.reporters.push(visualDiffReporter({ updateGoldens: golden }));
Expand All @@ -231,7 +231,7 @@ export class WTRConfig {
}

// convert all browsers to playwright
config.groups.forEach(g => g.browsers = this.getBrowsers(g.browsers, config.deviceScaleFactor ?? (g.name === 'vdiff' ? 2 : 1)));
config.groups.forEach(g => g.browsers = this.getBrowsers(g.browsers, g.name === 'vdiff' ? 2 : 1));

if (open || watch) {
config.testsFinishTimeout = 15 * 60 * 1000;
Expand Down

0 comments on commit da19afc

Please sign in to comment.