Skip to content

Commit

Permalink
Fix firefox integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed May 22, 2023
1 parent 521aee1 commit c9528f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions integration/resource-routes-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,15 @@ test.describe("loader in an app", async () => {
test("should handle ErrorResponses thrown from resource routes on client submissions", async ({
page,
}) => {
let logs: string[] = [];
page.on("console", (msg) => logs.push(msg.text()));
let app = new PlaywrightFixture(appFixture, page);
await app.goto("/");
await app.clickSubmitButton("/no-action");
let html = await app.getHtml();
expect(html).toMatch(
'Error: Route "routes/no-action" does not have an action'
expect(html).toMatch("Application Error");
expect(logs[0]).toContain(
'Route "routes/no-action" does not have an action'
);
});
});
Expand Down

0 comments on commit c9528f1

Please sign in to comment.