File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ def test_pagination(self):
11
11
# Verify navigation to the next page
12
12
self .click ('button[aria-label="Next page"]' )
13
13
self .assert_exact_text (
14
- "Page 2 of 10 " , ".mat-mdc-paginator-range-label"
14
+ "6 – 10 of 50 " , ".mat-mdc-paginator-range-label"
15
15
)
16
16
# Verify navigation to the previous page
17
17
self .click ('button[aria-label="Previous page"]' )
18
18
self .assert_exact_text (
19
- "Page 1 of 10 " , ".mat-mdc-paginator-range-label"
19
+ "1 – 5 of 50 " , ".mat-mdc-paginator-range-label"
20
20
)
21
21
# Set pagination to 10 items per page
22
22
self .click ("mat-select > div" )
23
23
self .click ("#mat-option-1" )
24
24
# 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
+ )
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ def test_wordle(self):
54
54
self .open_if_not_url ("about:blank" )
55
55
self .skip ("Skip this test in headless mode!" )
56
56
self .open ("https://www.nytimes.com/games/wordle/index.html" )
57
+ self .click_if_visible ('button:contains("Play")' , timeout = 2 )
57
58
self .click_if_visible ('svg[data-testid="icon-close"]' , timeout = 2 )
58
59
self .remove_elements ("div.place-ad" )
59
60
self .initialize_word_list ()
You can’t perform that action at this time.
0 commit comments