Skip to content

Commit

Permalink
Add tasks for refactoring vue test pages
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Jan 12, 2024
1 parent 1b2bb8e commit 27838d8
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package io.github.com.pages;

public class ApplicationPage extends VuetifyPage {

// @todo #5291 Fill in the page or delete it
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

public class AutocompletesPage extends VuetifyPage {

// @todo #5298 Fix locators, they are not stable
@UI("//div[@id='style']/div[2]//div[2]/div[contains(@class, 'v-autocomplete')]")
public static Autocomplete lightDenseShapedOutlinedAutocomplete;

Expand Down Expand Up @@ -48,6 +49,7 @@ public class AutocompletesPage extends VuetifyPage {
@UI("#api .v-autocomplete")
public static Autocomplete publicApiAutocomplete;

// @todo #5298 List item should be located
@UI("#api .v-list-item__title")
public static Text selectedApiName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.util.List;

public class BadgesPage extends VuetifyPage {

// @todo #5298 Locator to the Badge should be .v-bage, not icons, dots and avatar
@UI("#simpleBadges .v-badge")
public static List<Badge> simpleBadges;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class BannersPage extends VuetifyPage {
@UI("#SingleBanner .v-banner")
public static Banner singleBanner;

// @todo #5298 Locator is to input, not for the switch
@UI("#SingleBanner .v-input--selection-controls__input")
public static Switch singleBannerSwitch;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

public class BreadcrumbsPage extends VuetifyPage {

// @todo #5298 locator should use .v-breadcrumbs, not ul tag
@UI("#differentDividersBreadcrumbs > ul:nth-child(1)")
public static Breadcrumbs dashedBreadcrumbs;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

public class CardsPage extends VuetifyPage {

// @todo #5298 Localors should use .v-card class
@UI("//div[@class='container' and .//h2[contains(text(), 'Information Cards')]]/div")
public static InformationCard informationCard;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.epam.jdi.light.vuetify.elements.complex.ColorPicker;

public class ColorPickersPage extends VuetifyPage {

// @todo #5298 Locators should use .v-color-picker class
@UI("#CanvasColorPicker > div:first-child")
public static ColorPicker noCanvasColorPicker;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import com.epam.jdi.light.vuetify.elements.complex.DatePickerMonth;

public class DatePickersMonthPage extends VuetifyPage {

// @todo #5298 Locators should use .v-picker class
@JDatePickerMonth(
root = "#AllowedMonthPicker > div")
public static DatePickerMonth allowedMonthPicker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import java.util.List;

public class DatePickersPage extends VuetifyPage {

// @todo #5298 Locators should use .v-picker class
@JDatePicker(
root = "#AllowedDatesDatePicker > div")
public static DatePicker allowedDatePicker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class FileInputsPage extends VuetifyPage {
@JDIFileInput(root = "#MultipleFileInput.v-file-input")
public static FileInput multipleFileInput;

// @todo #5298 Locators should use .v-file-input class
@JDIFileInput(root = "//*[@id='AppendPrependIconFileInput']/div[1]")
public static FileInput prependIconFileInput;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class FloatingActionButtonsPage extends VuetifyPage {
@UI("//h2[text()='Small Variant']/following-sibling::div//button[contains(@class,'v-btn--absolute')]")
public static VuetifyButton addSmallVariantButton;

// @todo #5298 Dialog should be introduced to the page instead of separate fields from it
@UI(".v-dialog--active")
public static Section smallVariantDialog;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class InputsPage extends VuetifyPage {
@UI("#ErrorCountInput2")
public static Input fewErrorsCountInput;

// @todo #5298 Locators shoud use classes to search elements
@UI("//form[@id='HideDetailsInput']/div[1]")
public static Input hideDetailsMainInput;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

public class SheetsPage extends VuetifyPage {

// @todo #5298 Looks like locator point not to sheet, but on content. SHould be refactored
@UI("#ElevationSheet .v-sheet div")
public static List<Sheet> elevationSheets;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class SlidersPage extends VuetifyPage {
@UI("#DisabledSlider .v-slider")
public static Slider disabledSlider;

// @todo #5298 Locator with .v-slider should be used
@UI("#DisabledSlider .v-input__control")
public static Slider disabledSliderControl;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

public class SnackbarsPage extends VuetifyPage {

// @todo #5298 Locators are not stable enough
@UI("//div[@class='container'][1]//button")
public static Button simpleSnackbarOpen;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

public class TimePickersPage extends VuetifyPage {

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

Expand Down

0 comments on commit 27838d8

Please sign in to comment.