This commit is contained in:
2022-07-19 12:41:42 +02:00
parent c7088a8b43
commit ce07ca8b0d
6 changed files with 23 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ async function checkLinkForText(page: Page, link: string, text: string) {
}
async function checkLinkDoesNotExist(page: Page, link: string) {
await page.goto('/') // Required due to firefox: https://github.com/microsoft/playwright/issues/15781
await page.goto(link)
await expect(page.locator('main')).toContainText('note was not found or was already deleted')
}