-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: proof of concept changes to install playwright
- Loading branch information
1 parent
58e3cfd
commit 2ee66e5
Showing
3 changed files
with
31 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
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,21 @@ | ||
import re | ||
from playwright.sync_api import Page, expect | ||
|
||
|
||
def test_has_title(page: Page): | ||
page.goto("https://dev-benefits.calitp.org/") | ||
|
||
# Expect a title "to contain" a substring. | ||
expect(page).to_have_title(re.compile("Cal-ITP")) | ||
|
||
|
||
def test_get_started_link(page: Page): | ||
page.goto("https://dev-benefits.calitp.org/") | ||
|
||
# Click the Choose your provider link. | ||
page.get_by_text("Choose your provider").click() | ||
|
||
page.get_by_text("California State Transit (dev)").click() | ||
|
||
# # Expects page to have a heading with the name of Installation. | ||
# expect(page.get("heading", name="Installation")).to_be_visible() |