From ca09837b11a10b8a758db9891793350c14f91cc5 Mon Sep 17 00:00:00 2001 From: "Justin Willis (HE / HIM)" Date: Wed, 15 Nov 2023 13:16:11 -0800 Subject: [PATCH] fix tests for latest code changes --- apps/pwabuilder/tests/report-card.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/pwabuilder/tests/report-card.spec.ts b/apps/pwabuilder/tests/report-card.spec.ts index a17f18338..b1a1dfd55 100644 --- a/apps/pwabuilder/tests/report-card.spec.ts +++ b/apps/pwabuilder/tests/report-card.spec.ts @@ -34,7 +34,7 @@ test('ensure demo app is testable', async ({ page }) => { await expect(reportCardAppTitle).toBeVisible(); // // expect reportCardAppTitle to contain text "Webboard" - await expect(reportCardAppTitle).toHaveText('Webboard'); + await expect(reportCardAppTitle).toContainText('Webboard'); }); test('ensure Package For Stores button is not disabled for demo app', async ({ page }) => { @@ -53,6 +53,8 @@ test('ensure Package For Stores button is not disabled for demo app', async ({ p // wait for tests to end await page.waitForLoadState('networkidle'); + await page.waitForSelector("id=swProgressRing"); + // test manifest score const packageForStoresButton = page.locator('text=Package For Stores'); await expect(await packageForStoresButton.isDisabled()).toBe(false);