Skip to content

Commit 37d3ea4

Browse files
authored
Merge pull request #7068 from espoon-voltti/mobile-child-list-sort
Lisätään järjestäminen henkilökunnan mobiiliin
2 parents c5096b0 + 3a4ea51 commit 37d3ea4

File tree

9 files changed

+681
-21
lines changed

9 files changed

+681
-21
lines changed

frontend/src/e2e-test/pages/mobile/list-page.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export default class MobileListPage {
1818
multiselectToggle: Checkbox
1919
markMultipleArrivedButton: Element
2020
markMultipleDepartedutton: Element
21+
sortTypeSelect: Element
22+
2123
constructor(private readonly page: Page) {
2224
this.unreadMessagesIndicator = page.findByDataQa(
2325
'unread-messages-indicator'
@@ -33,6 +35,7 @@ export default class MobileListPage {
3335
)
3436
this.markMultipleArrivedButton = page.findByDataQa('mark-multiple-arrived')
3537
this.markMultipleDepartedutton = page.findByDataQa('mark-multiple-departed')
38+
this.sortTypeSelect = page.findByDataQa('sort-type-select')
3639
}
3740

3841
childRow = (childId: UUID) => this.page.findByDataQa(`child-${childId}`)
@@ -87,4 +90,13 @@ export default class MobileListPage {
8790
await this.groupChipElement(id).click()
8891
await this.selectedGroupElement(id).waitUntilVisible()
8992
}
93+
94+
async selectSortType(sortType: string) {
95+
await this.sortTypeSelect.locator.selectOption(sortType)
96+
}
97+
98+
async assertChildNames(expected: string[]) {
99+
const rows = this.page.findAllByDataQa('child-name')
100+
await rows.assertTextsEqual(expected)
101+
}
90102
}

0 commit comments

Comments
 (0)