Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed May 21, 2024
1 parent dbd6011 commit f6c3bdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/e2e/cheerio-error-snapshot/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ await expect(stats.requestsFailed === 4, 'All requests failed');

let totalErrorHtmlFiles = 0;
for (const error of Object.values(stats.errors)) {
if (hasNestedKey(error, 'firstErrorHtml')) {
if (hasNestedKey(error, 'firstErrorHtmlUrl')) {
totalErrorHtmlFiles++;
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/puppeteer-error-snapshot/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ await expect(stats.requestsFailed === 4, 'All requests failed');
let totalErrorHtmlFiles = 0;
let totalErrorScreenshotFiles = 0;
for (const error of Object.values(stats.errors)) {
if (hasNestedKey(error, 'firstErrorHtml')) {
if (hasNestedKey(error, 'firstErrorHtmlUrl')) {
totalErrorHtmlFiles++;
}
}

for (const error of Object.values(stats.errors)) {
if (hasNestedKey(error, 'firstErrorScreenshot')) {
if (hasNestedKey(error, 'firstErrorScreenshotUrl')) {
totalErrorScreenshotFiles++;
}
}
Expand Down

0 comments on commit f6c3bdf

Please sign in to comment.