Skip to content

Commit

Permalink
Adding new value for threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio Muller committed Jan 20, 2022
1 parent 92bd157 commit 91054e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/e2e/display.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ function assertDiffThresholdMet (diff) {
threshold = 0.25;
} else if (environmentIs(BROWSERS.EDGE)) {
threshold = 0.05;
} else if (environmentIs(BROWSERS.FIREFOX)) {
threshold = 0.1;
}
if (threshold) assert(diff <= threshold, `${diff} is above the threshold of ${threshold}`);
else assert.strictEqual(diff, 0);
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/support/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const BROWSERS = {
IE_11: ['internet explorer', '11'],
EDGE: ['MicrosoftEdge'],
ELECTRON: ['chrome', 'electron'],
SAFARI: ['Safari']
SAFARI: ['Safari'],
FIREFOX: ['firefox']
};

const DEVICES = {
Expand Down

0 comments on commit 91054e6

Please sign in to comment.