From a7abdc0796f17618279edea9cd2df2a7bcbbc428 Mon Sep 17 00:00:00 2001 From: Matthew Corner Date: Fri, 23 Feb 2024 13:00:58 +0000 Subject: [PATCH] Update tests --- src/LoadErrorMessage/LoadErrorMessage.spec.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/LoadErrorMessage/LoadErrorMessage.spec.tsx b/src/LoadErrorMessage/LoadErrorMessage.spec.tsx index 69f703723..2511b52a9 100644 --- a/src/LoadErrorMessage/LoadErrorMessage.spec.tsx +++ b/src/LoadErrorMessage/LoadErrorMessage.spec.tsx @@ -7,14 +7,14 @@ test("Renders the title", async ({ page }) => { const title = page .frameLocator('iframe[title="storybook-preview-iframe"]') - .getByText("Failed to load"); + .getByText("Title"); await expect(title).toBeVisible(); }); test("Renders the action button", async ({ page }) => { await page.goto( - "http://localhost:6006/?path=/story/card-loaderrormessage--default" + "http://localhost:6006/?path=/story/card-loaderrormessage--default&args=actionButtonText:Refresh" ); const button = page @@ -41,9 +41,9 @@ test('Does not render "View More Details" text if no details are provided', asyn await expect(viewMoreDetailsText).toBeHidden(); }); -test("Does not render image when showImg is false", async ({ page }) => { +test("Does not render image when image is none", async ({ page }) => { await page.goto( - "http://localhost:6006/?path=/story/card-loaderrormessage--default&args=showImg:false" + "http://localhost:6006/?path=/story/card-loaderrormessage--default&args=image:none" ); const frame = page.frameLocator('iframe[title="storybook-preview-iframe"]');