Skip to content

Commit

Permalink
Merge pull request #5502 from jdi-testing/5369
Browse files Browse the repository at this point in the history
#5369 fix locators
  • Loading branch information
pnatashap authored Apr 27, 2024
2 parents 774ddc2 + 4cbc1e3 commit 8edfd7e
Showing 1 changed file with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@

public class TimePickersPage extends VuetifyPage {

// @todo #5298 Locators should use .v-picker class for TimePickers
@UI("#AllowedTimesTimePicker > div:nth-child(1)")
@UI("#AllowedTimesTimePicker .v-picker--time")
public static TimePicker allowedTimesTimePicker;

@UI("#AMPMInTitleTimePicker > div:nth-child(1)")
@UI("#AMPMInTitleTimePicker .v-picker--time")
public static TimePicker amPmInTitleTimePicker;

@UI("#AMPMInTitleTimePicker > div:nth-child(2)")
public static TimePicker secondAmPmInTitleTimePicker;

@UI("#ColorsTimePicker > div:nth-child(1)")
@UI("#ColorsTimePicker .v-picker--time")
public static TimePicker firstColorTimePicker;

@UI("#DisabledTimePicker > div:nth-child(1)")
Expand All @@ -27,41 +26,45 @@ public class TimePickersPage extends VuetifyPage {
@UI("#ElevationTimePicker > div:nth-child(2)")
public static TimePicker elevatedTimePicker;

@UI("#FormatTimePicker > div")
@UI("#FormatTimePicker .v-picker--time")
public static TimePicker formatTimePicker;

@UI("#NoTitleTimePicker > div:nth-child(1)")
@UI("#NoTitleTimePicker .v-picker--time")
public static TimePicker noTitleTimePicker;

@UI("#NoTitleTimePicker > div:nth-child(2)")
public static TimePicker verticalNoTitleTimePicker;

@UI("#ScrollableTimePicker > .v-picker")
@UI("#ScrollableTimePicker > .v-picker--time")
public static TimePicker scrollableTimePicker;

@UI("#ReadOnlyTimePicker > div:nth-child(1)")
@UI("#ReadOnlyTimePicker > .v-picker--time")
public static TimePicker readOnlyTimePicker;

@UI("#UseSecondsTimePicker > div:nth-child(1)")
@UI("#UseSecondsTimePicker > .v-picker--time")
public static TimePicker useSecondsTimePicker1;

@UI("#UseSecondsTimePicker > div:nth-child(2)")
public static TimePicker useSecondsTimePicker2;

@UI("#WidthTimePicker > div:nth-child(1)")
@UI("#WidthTimePicker > .v-picker--time")
public static TimePicker firstWidthTimePicker;

@UI("#DialogAndMenuTimePicker > div:nth-child(1)")
// @todo #5369 Menu with TimePicker should be described as a separate component,
// may be input with menu to change data
@UI("#DialogAndMenuTimePicker .v-input")
public static Input inputForMenuTimePicker;
@UI("div[role='menu']")
public static Menu menuForTimePicker;
@UI("div.v-menu__content")
@UI("div.v-menu__content > .v-picker--time")
public static TimePicker timePickerInMenu;

// @todo #5369 Dialog with TimePicker should be described as a separate component
// may be input with dialog to change data
@UI("#DialogAndMenuTimePicker > div:nth-child(3)")
public static Input inputForDialogTimePicker;
@UI("div[role='dialog']")
public static Dialog dialogForTimePicker;
@UI("div.v-dialog__content")
@UI("div.v-dialog__content .v-picker--time")
public static TimePicker timePickerInDialog;
}

0 comments on commit 8edfd7e

Please sign in to comment.