|
|
@ -21,14 +21,14 @@ export class CalendarDayDateTimePage extends BasePage { |
|
|
|
const recordContainer = this.getRecordContainer(); |
|
|
|
const recordContainer = this.getRecordContainer(); |
|
|
|
const recordCard = recordContainer.getByTestId(`nc-calendar-day-record-${record}`); |
|
|
|
const recordCard = recordContainer.getByTestId(`nc-calendar-day-record-${record}`); |
|
|
|
const toDay = this.get().getByTestId('nc-calendar-day-hour').nth(hourIndex); |
|
|
|
const toDay = this.get().getByTestId('nc-calendar-day-hour').nth(hourIndex); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.get().getByTestId('nc-calendar-day-hour').nth(0).scrollIntoViewIfNeeded(); |
|
|
|
|
|
|
|
|
|
|
|
const cord = await toDay.boundingBox(); |
|
|
|
const cord = await toDay.boundingBox(); |
|
|
|
|
|
|
|
|
|
|
|
await recordCard.scrollIntoViewIfNeeded(); |
|
|
|
await recordCard.scrollIntoViewIfNeeded(); |
|
|
|
await recordCard.hover(); |
|
|
|
await recordCard.hover(); |
|
|
|
await this.rootPage.mouse.down(); |
|
|
|
await this.rootPage.mouse.down(); |
|
|
|
// Bit Flaky
|
|
|
|
|
|
|
|
await this.rootPage.waitForTimeout(500); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.rootPage.mouse.move(cord.x + cord.width / 2, cord.y + cord.height / 2, { |
|
|
|
await this.rootPage.mouse.move(cord.x + cord.width / 2, cord.y + cord.height / 2, { |
|
|
|
steps: 10, |
|
|
|
steps: 10, |
|
|
|
}); |
|
|
|
}); |
|
|
|