-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs-e2e): 'Edit on GitHub' button going to 404 page
Remove "/docs" from the endpoints pointing to the docs page.
- Loading branch information
1 parent
11d852a
commit 6a9acb5
Showing
4 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import type { Locator, Page } from '@playwright/test' | ||
import { expect } from '@playwright/test' | ||
|
||
export async function clickAndGoToPage(layout: { page: Page }, button: Locator, expectedUrl: string) { | ||
export async function clickAndGoToPage( | ||
layout: { page: Page }, | ||
button: Locator, | ||
expectedUrl: string, | ||
) { | ||
const pagePromise = layout.page.context().waitForEvent('page') | ||
await button.click() | ||
const newPage = await pagePromise | ||
// TODO: factor out of this function, as helper functions should be pure actions, and not contain assertions | ||
await expect(newPage).toHaveURL(expectedUrl) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters