Skip to content

Commit

Permalink
Update tests to the new layout of the error page
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampax committed May 20, 2021
1 parent 25f6a16 commit 844a81f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/website/scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function assertHttpError(request, httpStatus, expectedMessage) {
if (expectedMessage) {
let message;
if (err.detail.startsWith('<!DOCTYPE html>')) {
const match = /sorry that did not work<\/p><p>([^<]+)<\/p>/.exec(err.detail);
const match = /Sorry that did not work<\/h2><\/div><div class="msg-body"><h3 class="p">([^<]+)<\/h3>/.exec(err.detail);
if (!match)
assert.fail(`cannot find error message`);
message = match[1];
Expand Down Expand Up @@ -142,4 +142,4 @@ module.exports = {
assertRedirect,
assertBanner,
assertBlocked
};
};

0 comments on commit 844a81f

Please sign in to comment.