Skip to content

Commit

Permalink
Merge pull request #5327 from jdi-testing/check_mat_ui_pages
Browse files Browse the repository at this point in the history
The list of the tasks to check in Material UI
  • Loading branch information
pnatashap authored Jan 14, 2024
2 parents 27838d8 + 10a9a12 commit c7fcea4
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Chip> outlinedChips;

// @todo #5297 Fix to css locator
@UI("//a[contains(@class, 'MuiChip-root')]")
public static List<Chip> linkChips;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class IconsPage extends WebPage {
@UI(".MuiGrid-grid-xs-8 > svg")
public static List<Icon> simpleIcons;

// @todo #5297 Fix locator to be more stable
@UI("//p[@id='colorLastClick']/..//div/*")
public static List<Icon> colorIcons;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')]]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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


public class PopoverHoverFrame extends Section {

// @todo #5297 Page is not used, check it
@UI(".MuiTypography-root")
public Typography labelToHover;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Transition> collapseTransitions;

Expand Down

0 comments on commit c7fcea4

Please sign in to comment.