Skip to content

Commit db773c2

Browse files
committed
Update examples
1 parent dbba885 commit db773c2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/migration/protractor/mat_paginator_spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ describe('angular-material paginator component page', () => {
1010
it('Should navigate to next page', async() => {
1111
await $('button[aria-label=\'Next page\']').click();
1212

13-
await expect($('.mat-paginator-range-label').getAttribute('innerText')).toEqual('11 – 20 of 100');
13+
await expect($('.mat-paginator-range-label').getAttribute('innerText')).toEqual('Page 2 of 10');
1414
});
1515

1616
it('Should navigate to previous page', async() => {
1717
await $('button[aria-label=\'Previous page\']').click();
1818

19-
await expect($('.mat-paginator-range-label').getAttribute('innerText')).toEqual('1 – 10 of 100');
19+
await expect($('.mat-paginator-range-label').getAttribute('innerText')).toEqual('Page 1 of 10');
2020
});
2121

2222
it('Should change list length to 5 items per page', async() => {
@@ -26,6 +26,6 @@ describe('angular-material paginator component page', () => {
2626

2727
await fiveItemsOption.click();
2828

29-
await expect($('.mat-paginator-range-label').getAttribute('innerText')).toEqual('1 – 5 of 100');
29+
await expect($('.mat-paginator-range-label').getAttribute('innerText')).toEqual('Page 1 of 20');
3030
});
3131
});

examples/migration/protractor/mat_paginator_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ def test_pagination(self):
88
self.assert_element(".mat-button-wrapper > .mat-icon")
99
# Verify navigation to the next page
1010
self.click('button[aria-label="Next page"]')
11-
self.assert_exact_text("11 – 20 of 100", ".mat-paginator-range-label")
11+
self.assert_exact_text("Page 2 of 10", ".mat-paginator-range-label")
1212
# Verify navigation to the previous page
1313
self.click('button[aria-label="Previous page"]')
14-
self.assert_exact_text("1 – 10 of 100", ".mat-paginator-range-label")
14+
self.assert_exact_text("Page 1 of 10", ".mat-paginator-range-label")
1515
# Verify changed list length to 5 items per page
1616
self.click("mat-select > div")
1717
self.click("mat-option > .mat-option-text")
18-
self.assert_exact_text("1 – 5 of 100", ".mat-paginator-range-label")
18+
self.assert_exact_text("Page 1 of 20", ".mat-paginator-range-label")

0 commit comments

Comments
 (0)