diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/BadgePage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/BadgePage.java index 6fe4ac99a2..34df057aca 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/BadgePage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/BadgePage.java @@ -18,6 +18,7 @@ public class BadgePage extends WebPage { @UI("#secondaryColorBadge") public static Badge secondaryColorBadgeContainer; + // @todo #5297 Button should be used from ButtomGruop, not directly as single @UI(".MuiButtonGroup-root button[aria-label='reduce']") public static Button buttonReduce; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/ChipsPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/ChipsPage.java index 9922042882..eb2b58e61d 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/ChipsPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/ChipsPage.java @@ -18,9 +18,11 @@ public class ChipsPage extends WebPage { @UI("#lastDeleteInfo") public static Text lastDeleteBasicInfo; + // @todo #5297 Fix locator, it is not stable @UI("//h2[text()='Outlined Chips']/following-sibling::div/div/div[contains(@class, 'MuiChip-root')]") public static List outlinedChips; + // @todo #5297 Fix to css locator @UI("//a[contains(@class, 'MuiChip-root')]") public static List linkChips; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/IconsPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/IconsPage.java index 42e7245434..81ea07a24a 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/IconsPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/displaydata/IconsPage.java @@ -12,6 +12,7 @@ public class IconsPage extends WebPage { @UI(".MuiGrid-grid-xs-8 > svg") public static List simpleIcons; + // @todo #5297 Fix locator to be more stable @UI("//p[@id='colorLastClick']/..//div/*") public static List colorIcons; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/feedback/ProgressPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/feedback/ProgressPage.java index 5c537d0c86..c35581c8c4 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/feedback/ProgressPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/feedback/ProgressPage.java @@ -13,6 +13,7 @@ public class ProgressPage extends WebPage { @JProgress(root = "#circularIndeterminateProgress") public static CircularProgress circularProgressIndeterminate; + // @todo #5297 Check locators with aria-valuenow, very stange to use them @JProgress(root = "div[aria-valuenow='25'][1]") public static CircularProgress circularProgressDeterminateWithValue25; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/ButtonGroupPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/ButtonGroupPage.java index 461b9fbf70..bada756fbf 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/ButtonGroupPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/ButtonGroupPage.java @@ -9,6 +9,7 @@ public class ButtonGroupPage extends WebPage { + // @todo #5297 Check locators, the class is the same is for Button @UI("div[aria-label = 'outlined primary button group'] .MuiButton-root") public static ButtonGroup basicButtonGroup; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/DateTimePickersPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/DateTimePickersPage.java index b5dd2817bf..b1850be3cf 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/DateTimePickersPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/DateTimePickersPage.java @@ -7,6 +7,7 @@ public class DateTimePickersPage extends WebPage { + // @todo #5297 Check if locators with classses can be used @UI("//*[@id = 'date-picker-inline-label']/parent::div") public static DateTimePicker inlineDatePicker; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/TextFieldPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/TextFieldPage.java index e105f1c990..f018253313 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/TextFieldPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/inputs/TextFieldPage.java @@ -9,6 +9,7 @@ public class TextFieldPage extends WebPage { + // @todo #5297 Fix locators for more stable variant @UI("//input[@id='standard-required']/../..") public static TextField requiredTextField; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/BoxPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/BoxPage.java index 4cc3e4d5e6..8f6b04cfb5 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/BoxPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/BoxPage.java @@ -7,6 +7,7 @@ public class BoxPage extends WebPage { + // @todo #5297 Do not see any Box class, do we really need this page? @UI(".MuiButton-contained") public static Button buttonContainedBox; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/HiddenPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/HiddenPage.java index e708c52c17..1d707665bf 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/HiddenPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/layout/HiddenPage.java @@ -6,6 +6,7 @@ import com.epam.jdi.light.ui.html.elements.common.Text; public class HiddenPage extends WebPage { + // @todo #5297 Check the page usage @UI(".MuiTypography-subtitle1") public static Text currentWidth; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/ContextMenuPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/ContextMenuPage.java index cf9232c563..affd3f0dbc 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/ContextMenuPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/ContextMenuPage.java @@ -10,6 +10,7 @@ public class ContextMenuPage extends WebPage { @UI("p.MuiTypography-root") public static Text pageText; + // @todo #5297 Check the locator, looks like it points to item, not for Menu @UI(".MuiMenuItem-root") public static Menu contextMenuList; } diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TabPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TabPage.java index 14dad61269..6b0f156f82 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TabPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TabPage.java @@ -10,6 +10,7 @@ public class TabPage extends WebPage { @UI("h2+div[1] .MuiTabs-root") public static Tabs simpleTabs; + // @todo #5297 Fix locator to be more stable @UI("//div[./h2[text()='Simple tabs']]/div[1]/div[@role='tabpanel' and not(@hidden)]") public static Container simplePanels; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TemporaryDrawerPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TemporaryDrawerPage.java index 750a8cb495..e9656b3e4b 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TemporaryDrawerPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/navigation/TemporaryDrawerPage.java @@ -6,6 +6,7 @@ public class TemporaryDrawerPage extends WebPage { + // @todo #5297 Check the locators for drawer, looks like they must be relative, while they a written as absolute @JButtonWithDrawer( root = "//span[text() = 'left']/parent::button", drawer = "//div[contains(@class, 'MuiDrawer-root')][./div[contains(@class, 'MuiDrawer-paperAnchorLeft')]]" diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/BackToTopAppBarPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/BackToTopAppBarPage.java index fd4a150040..393ed77db2 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/BackToTopAppBarPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/BackToTopAppBarPage.java @@ -7,6 +7,7 @@ public class BackToTopAppBarPage extends WebPage { + // @todo #5297 Check the locator, looks like it is not for AppBar (or use correct classname) @UI(".MuiBox-root[1]") public static AppBar backToTopAppBar; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/CardPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/CardPage.java index 42d49f5564..f8aaa0cc1e 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/CardPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/surfaces/CardPage.java @@ -18,6 +18,7 @@ public class CardPage extends WebPage { @UI("#complexInteraction") public static ComplexInteractionCard complexCard; + // @todo #5297 Class should be created to describe the card with image or image is a legal part of the card @UI("#complexInteraction .MuiCardMedia-root") public static Image complexCardImage; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/PopoverHoverFrame.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/PopoverHoverFrame.java index 837e175491..f60a7bc47e 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/PopoverHoverFrame.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/PopoverHoverFrame.java @@ -7,7 +7,7 @@ public class PopoverHoverFrame extends Section { - + // @todo #5297 Page is not used, check it @UI(".MuiTypography-root") public Typography labelToHover; diff --git a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/TransitionPage.java b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/TransitionPage.java index d95166a99f..a583961b8f 100644 --- a/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/TransitionPage.java +++ b/jdi-light-material-ui-tests/src/main/java/io/github/com/pages/utils/TransitionPage.java @@ -9,6 +9,7 @@ public class TransitionPage extends WebPage { + // @todo #5297 Check the locators @UI("//h2[text()='Collapse']/following::div[contains(@class,'MuiCollapse-root')]") public static List collapseTransitions;