From c9528f13c3e8f5ac2e887cc3614c8c12507b21b8 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Mon, 22 May 2023 15:51:18 -0400 Subject: [PATCH] Fix firefox integration test --- integration/resource-routes-test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/integration/resource-routes-test.ts b/integration/resource-routes-test.ts index e70df01607d..82d1218e271 100644 --- a/integration/resource-routes-test.ts +++ b/integration/resource-routes-test.ts @@ -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' ); }); });