Skip to content

Commit

Permalink
Merge pull request #5493 from jdi-testing/5339
Browse files Browse the repository at this point in the history
#5339 fix locator
  • Loading branch information
pnatashap authored Apr 26, 2024
2 parents 01cb8c3 + a6c4855 commit 0c0dbf3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ public class IconsPage extends WebPage {
@UI(".MuiGrid-grid-xs-8 > svg")
public static List<Icon> simpleIcons;

// @todo #5297 Fix locator to be more stable against div
@UI("//p[@id='colorLastClick']/..//div/*")
@UI("//h2[text()='Color']/following::div[1]//*[contains(@class, 'MuiSvgIcon-root')]")
public static List<Icon> colorIcons;

@UI("//p[@id='sizeLastClick']/..//div/*")
@UI("//h2[text()='Size']/following::div[1]//*[contains(@class, 'MuiSvgIcon-root')]")
public static List<Icon> differentSizesIcons;

@UI("#simpleLastClick")
Expand Down

0 comments on commit 0c0dbf3

Please sign in to comment.