Skip to content

Commit

Permalink
more generic check
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Dec 20, 2023
1 parent 4080cd2 commit c477bb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/playwright-tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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/);


});

0 comments on commit c477bb3

Please sign in to comment.