-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(addon-mobile):
InputDateRange
throws error on single date selec…
…tion (#9411)
- Loading branch information
1 parent
d0577d6
commit 93c08d4
Showing
6 changed files
with
102 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
...ywright/utils/page-objects/calendar.po.ts → ...t/utils/page-objects/calendar-sheet.po.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
projects/demo-playwright/utils/page-objects/mobile-calendar.po.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {TuiCalendarSheetPO} from '@demo-playwright/utils'; | ||
import type {Locator} from '@playwright/test'; | ||
|
||
export class TuiMobileCalendarPO { | ||
public cancelButton = this.host.getByTestId('tui-mobile-calendar__cancel'); | ||
public confirmButton = this.host.getByTestId('tui-mobile-calendar__confirm'); | ||
|
||
constructor(private readonly host: Locator) {} | ||
|
||
public async getCalendarSheets(): Promise<TuiCalendarSheetPO[]> { | ||
const locators = await this.host | ||
.page() | ||
.locator('tui-calendar-sheet, tui-mobile-calendar-sheet') | ||
.all(); | ||
|
||
return locators.map((x) => new TuiCalendarSheetPO(x)); | ||
} | ||
} |