Skip to content

Commit

Permalink
Merge pull request #1749 from jplag/e2e/better-image-comparison
Browse files Browse the repository at this point in the history
Improve flaky e2e tests
  • Loading branch information
tsaglam authored May 14, 2024
2 parents e91e4bc + 487df7e commit 3e440fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions report-viewer/tests/e2e/Distribution.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ function getTestCombinations() {
['Linear', 'Logarithmic']
]

const combinations: string[][] = []

const baseOptions = options.map((o) => o[0])
const combinations: string[][] = [baseOptions]

for (let i = 0; i < options.length; i++) {
for (let j = 0; j < options[i].length; j++) {
for (let j = 1; j < options[i].length; j++) {
const combination = Array.from(baseOptions)
combination[i] = options[i][j]
combinations.push(combination)
Expand Down

0 comments on commit 3e440fd

Please sign in to comment.