Skip to content

Commit 8394af7

Browse files
committed
Update example tests
1 parent 3798f91 commit 8394af7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/migration/protractor/mat_paginator_test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ def test_pagination(self):
1111
# Verify navigation to the next page
1212
self.click('button[aria-label="Next page"]')
1313
self.assert_exact_text(
14-
"Page 2 of 10", ".mat-mdc-paginator-range-label"
14+
"6 – 10 of 50", ".mat-mdc-paginator-range-label"
1515
)
1616
# Verify navigation to the previous page
1717
self.click('button[aria-label="Previous page"]')
1818
self.assert_exact_text(
19-
"Page 1 of 10", ".mat-mdc-paginator-range-label"
19+
"1 – 5 of 50", ".mat-mdc-paginator-range-label"
2020
)
2121
# Set pagination to 10 items per page
2222
self.click("mat-select > div")
2323
self.click("#mat-option-1")
2424
# Verify page with correct number of pages
25-
self.assert_exact_text("Page 1 of 5", ".mat-mdc-paginator-range-label")
25+
self.assert_exact_text(
26+
"1 – 10 of 50", ".mat-mdc-paginator-range-label"
27+
)

examples/wordle_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_wordle(self):
5454
self.open_if_not_url("about:blank")
5555
self.skip("Skip this test in headless mode!")
5656
self.open("https://www.nytimes.com/games/wordle/index.html")
57+
self.click_if_visible('button:contains("Play")', timeout=2)
5758
self.click_if_visible('svg[data-testid="icon-close"]', timeout=2)
5859
self.remove_elements("div.place-ad")
5960
self.initialize_word_list()

0 commit comments

Comments
 (0)