From c477bb3e01329414abee339725a4df6aa7979de2 Mon Sep 17 00:00:00 2001 From: Steve Persch Date: Wed, 20 Dec 2023 17:10:49 -0600 Subject: [PATCH] more generic check --- tests/playwright-tests/example.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/playwright-tests/example.spec.ts b/tests/playwright-tests/example.spec.ts index 97c07d8d45..b0ecc5dafb 100644 --- a/tests/playwright-tests/example.spec.ts +++ b/tests/playwright-tests/example.spec.ts @@ -14,11 +14,7 @@ test('Use Search Form', async ({ page }) => { await page.fill('#searchform input', 'Terminus'); // Submit the form await page.press('#searchform input', 'Enter'); - - - // Check that the page contains "Introduction | Terminus Guide | Pantheon Docs" - // //const searchResults = page.getByTestId('h3 a').nth(0); @@ -34,5 +30,9 @@ const firstResult = await page.locator('h3 a') // check that the current path is guides/platform-considerations/terminus-platform // ignore the base URL. - await expect(page).toHaveURL('https://docs.pantheon.io/guides/platform-considerations/terminus-platform'); +// await expect(page).toHaveURL('https://docs.pantheon.io/guides/platform-considerations/terminus-platform'); +// check that the current path contains guides/platform-considerations/terminus-platform + await expect(page).toHaveURL(/guides\/platform-considerations\/terminus-platform/); + + });