-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88ef80a
commit 3a915d0
Showing
3 changed files
with
18 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
# testing | ||
/coverage | ||
test-results/ | ||
|
||
# production | ||
/build | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
test('has title', async ({ browser }) => { | ||
const playwrightContext = await browser.newContext(); | ||
const githubContext = await browser.newContext(); | ||
try { | ||
const playwrightPage = await playwrightContext.newPage(); | ||
const githubPage = await githubContext.newPage(); | ||
await playwrightPage.goto('https://playwright.dev/'); | ||
await githubPage.goto('https://github.com/'); | ||
await expect(playwrightPage).toHaveTitle(/Playwright/); | ||
await expect(githubPage).toHaveTitle(/GitHub/); | ||
} finally { | ||
await playwrightContext.close() | ||
} | ||
}); |