File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
examples/migration/protractor Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ class AngularMaterialInputTests(BaseCase):
6
6
def test_invalid_input (self ):
7
7
# Test that there's an error for an invalid input
8
8
self .open ("https://material.angular.io/components/input/examples" )
9
- self .type ("#mat- input-1" , "invalid" )
9
+ self .type (' input[type="email"]' , "invalid" )
10
10
self .assert_element ("mat-error" )
Original file line number Diff line number Diff line change 5
5
class AngularMaterialPaginatorTests (BaseCase ):
6
6
def test_pagination (self ):
7
7
self .open ("https://material.angular.io/components/paginator/examples" )
8
+ self .click_if_visible ("button.mat-mdc-button" )
9
+ self .scroll_to ("div.mat-mdc-paginator-page-size" )
8
10
# Set pagination to 5 items per page
9
11
self .click ("mat-select > div" )
10
- self .click ("# mat-option-0 " )
12
+ self .click ("mat-option:nth-of-type(1) " )
11
13
# Verify navigation to the next page
12
14
self .click ('button[aria-label="Next page"]' )
13
15
self .assert_exact_text (
@@ -20,7 +22,7 @@ def test_pagination(self):
20
22
)
21
23
# Set pagination to 10 items per page
22
24
self .click ("mat-select > div" )
23
- self .click ("# mat-option-1 " )
25
+ self .click ("mat-option:nth-of-type(2) " )
24
26
# Verify page with correct number of pages
25
27
self .assert_exact_text (
26
28
"1 – 10 of 50" , ".mat-mdc-paginator-range-label"
You can’t perform that action at this time.
0 commit comments