diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiAvatarsTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiAvatarsTestCases.java index d02d5acf..8b31c5a7 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiAvatarsTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiAvatarsTestCases.java @@ -47,8 +47,8 @@ public class MuiAvatarsTestCases extends AbstractBrowserSupport { /** * Tests the image avatars. * - * @see - * https://mui.com/components/avatars/#image-avatars + * @see + * https://mui.com/material-ui/react-avatar/#image-avatars */ public void testImageAvatars() { List imageAvatarList = driver.findComponent(By.id("ImageAvatars.js")).findComponent(By2.parent()) @@ -67,8 +67,8 @@ public void testImageAvatars() { /** * Tests the letter avatars. * - * @see - * https://mui.com/components/avatars/#letter-avatars + * @see + * https://mui.com/material-ui/react-avatar/#letter-avatars */ public void testLetterAvatars() { List letterAvatarList = driver.findComponent(By.id("LetterAvatars.js")).findComponent(By2.parent()) @@ -83,7 +83,7 @@ public void testLetterAvatars() { public static void main(String[] args) { MuiAvatarsTestCases test = new MuiAvatarsTestCases(); test.setUpDriver(EDGE); - test.driver.navigate().to("https://mui.com/components/avatars/"); + test.driver.navigate().to("https://mui.com/material-ui/react-avatar/"); test.testImageAvatars(); test.testLetterAvatars(); diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiBadgeTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiBadgeTestCases.java index 3bf99280..99e4ae56 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiBadgeTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiBadgeTestCases.java @@ -46,7 +46,7 @@ public class MuiBadgeTestCases extends AbstractBrowserSupport { /** * Tests for basic badge * - * @see https://mui.com/components/badges/#basic-badge + * @see https://mui.com/material-ui/react-badge/#basic-badge */ public void testBasicBadge() { MuiBadge badge = driver.findComponent(By.id("SimpleBadge.js")).findComponent(By2.parent()) @@ -61,8 +61,8 @@ public void testBasicBadge() { /** * Tests for badge visibility * - * @see - * https://mui.com/components/badges/#badge-visibility + * @see + * https://mui.com/material-ui/react-badge/#badge-visibility */ public void testBadgeVisibility() { List badgeList = driver.findComponent(By.id("BadgeVisibility.js")).findComponent(By2.parent()) @@ -80,8 +80,8 @@ public void testBadgeVisibility() { /** * Tests the show / hide badge when it's zero * - * @see - * https://mui.com/components/badges/#badge-visibility + * @see + * https://mui.com/material-ui/react-badge/#badge-visibility */ public void testShowZeroBadge() { List badgeList = driver.findComponent(By.id("ShowZeroBadge.js")).findComponent(By2.parent()) @@ -99,8 +99,8 @@ public void testShowZeroBadge() { /** * Tests the maximum value * - * @see - * https://mui.com/components/badges/#maximum-value + * @see + * https://mui.com/material-ui/react-badge/#maximum-value */ public void testMaximumValue() { List badgeList = driver.findComponent(By.id("BadgeMax.js")).findComponent(By2.parent()) @@ -119,7 +119,7 @@ public void testMaximumValue() { public static void main(String[] args) { MuiBadgeTestCases test = new MuiBadgeTestCases(); test.setUpDriver(EDGE); - test.driver.navigate().to("https://mui.com/components/badges/"); + test.driver.navigate().to("https://mui.com/material-ui/react-badge/"); test.testBasicBadge(); test.testBadgeVisibility(); diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiChipTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiChipTestCases.java index ae2f47c8..0d410257 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiChipTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiChipTestCases.java @@ -46,8 +46,8 @@ public class MuiChipTestCases extends AbstractBrowserSupport { /** * Tests the basic chip. * - * @see - * https://mui.com/components/chips/#basic-chip + * @see + * https://mui.com/material-ui/react-chip/#basic-chip */ public void testBasicChip() { List chipList = driver.findComponent(By.id("BasicChips.js")).findComponent(By2.parent()) @@ -66,8 +66,8 @@ public void testBasicChip() { /** * Tests the deletable chips. * - * @see - * https://mui.com/components/chips/#deletable + * @see + * https://mui.com/material-ui/react-chip/#deletable */ public void testDeletable() { List chipList = driver.findComponent(By.id("DeletableChips.js")).findComponent(By2.parent()) @@ -87,8 +87,8 @@ public void testDeletable() { /** * Tests the avatar chips. * - * @see - * https://mui.com/components/chips/#avatar-chip + * @see + * https://mui.com/material-ui/react-chip/#avatar-chip */ public void testAvatarChips() { List chipList = driver.findComponent(By.id("AvatarChips.js")).findComponent(By2.parent()) @@ -108,8 +108,8 @@ public void testAvatarChips() { /** * Tests the icon chips. * - * @see - * https://mui.com/components/chips/#icon-chip + * @see + * https://mui.com/material-ui/react-chip/#icon-chip */ public void testIconChips() { List chipList = driver.findComponent(By.id("IconChips.js")).findComponent(By2.parent()) @@ -129,7 +129,7 @@ public void testIconChips() { public static void main(String[] args) { MuiChipTestCases test = new MuiChipTestCases(); test.setUpDriver(EDGE); - test.driver.navigate().to("https://mui.com/components/chips/"); + test.driver.navigate().to("https://mui.com/material-ui/react-chip/"); test.testBasicChip(); test.testAvatarChips(); diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiDividerTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiDividerTestCases.java index c64c1b50..5b133e0d 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiDividerTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiDividerTestCases.java @@ -47,13 +47,14 @@ public class MuiDividerTestCases extends AbstractBrowserSupport { /** * Tests the list dividers. * - * @see - * https://mui.com/components/dividers/#list-dividers + * @see + * https://mui.com/material-ui/react-divider/#list-dividers */ public void testListDividers() { List dividerList = driver.findComponent(By.id("ListDividers.js")).findComponent(By2.parent()) + .findComponent(By.className("MuiList-root")) .findComponentsAs(className("MuiDivider-root"), c -> c.as(muiV5()).toDivider()); - assertEquals(2, dividerList.size()); + assertEquals(3, dividerList.size()); dividerList.forEach(divider -> { assertTrue(divider.validate()); @@ -64,8 +65,8 @@ public void testListDividers() { /** * Tests the dividers with text, introduced in V5. * - * @see - * https://mui.com/components/dividers/#dividers-with-text + * @see + * https://mui.com/material-ui/react-divider/#dividers-with-text */ public void testDividersWithText() { List dividerList = driver.findComponent(By.id("DividerText.js")).findComponent(By2.parent()) @@ -80,15 +81,15 @@ public void testDividersWithText() { assertEquals("CENTER", dividerList.get(0).getText()); assertEquals("LEFT", dividerList.get(1).getText()); assertEquals("RIGHT", dividerList.get(2).getText()); - assertEquals("CHIP", + assertEquals("Chip", dividerList.get(3).findComponent(className("MuiChip-root")).as(muiV5()).toChip().getLabel().getText()); } /** * Tests the vertical divider. * - * @see - * https://mui.com/components/dividers/#vertical-divider + * @see + * https://mui.com/material-ui/react-divider/#vertical-divider */ public void testVerticalDivider() { List dividerList = driver.findComponent(By.id("VerticalDividers.js")).findComponent(By2.parent()) @@ -103,7 +104,7 @@ public void testVerticalDivider() { public static void main(String[] args) { MuiDividerTestCases test = new MuiDividerTestCases(); test.setUpDriver(EDGE); - test.driver.navigate().to("https://mui.com/components/dividers/"); + test.driver.navigate().to("https://mui.com/material-ui/react-divider/"); test.testListDividers(); test.testDividersWithText(); diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiListTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiListTestCases.java index 7cfa9716..b7ef5686 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiListTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/datadisplay/MuiListTestCases.java @@ -49,8 +49,8 @@ public class MuiListTestCases extends AbstractBrowserSupport { /** * Tests the basic lists. * - * @see - * https://mui.com/components/dividers/#basic-list + * @see + * https://mui.com/material-ui/react-divider/#basic-list */ public void testBasicList() { List lists = driver.findComponent(By.id("BasicList.js")).findComponent(By2.parent()) diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiBackdropTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiBackdropTestCases.java index 5c92a6fd..6a002c18 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiBackdropTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiBackdropTestCases.java @@ -46,7 +46,7 @@ public class MuiBackdropTestCases extends AbstractBrowserSupport { /** * Tests the example. * - * @see https://mui.com/components/backdrop/#example + * @see https://mui.com/material-ui/react-backdrop/#example */ public void testExample() { MuiButton showBackdropButton = driver.findComponent(By.id("SimpleBackdrop.js")).findComponent(By2.parent()) @@ -63,7 +63,7 @@ public void testExample() { public static void main(String[] args) { MuiBackdropTestCases test = new MuiBackdropTestCases(); test.setUpDriver(EDGE); - test.driver.navigate().to("https://mui.com/components/backdrop/"); + test.driver.navigate().to("https://mui.com/material-ui/react-backdrop/"); test.testExample(); } diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiDialogTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiDialogTestCases.java index 20c86882..60ab327f 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiDialogTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiDialogTestCases.java @@ -48,11 +48,11 @@ public class MuiDialogTestCases extends AbstractBrowserSupport { /** * Tests the basic dialog * - * @see - * https://mui.com/components/dialogs/#basic-dialog + * @see + * https://mui.com/material-ui/react-dialog/#basic-dialog */ public void testBasicDialog() { - MuiButton showDialogButton = driver.findComponent(By.id("SimpleDialog.js")).findComponent(By2.parent()) + MuiButton showDialogButton = driver.findComponent(By.id("SimpleDialogDemo.js")).findComponent(By2.parent()) .findComponent(By.className("MuiButton-root")).as(muiV5()).toButton(); showDialogButton.click(); @@ -68,8 +68,8 @@ public void testBasicDialog() { /** * Tests the alerts * - * @see - * https://mui.com/components/dialogs/#alerts + * @see + * https://mui.com/material-ui/react-dialog/#alerts */ public void testAlerts() { MuiButton openDialogButton = driver.findComponent(By.id("AlertDialog.js")).findComponent(By2.parent()) @@ -95,7 +95,7 @@ public void testAlerts() { public static void main(String[] args) { MuiDialogTestCases test = new MuiDialogTestCases(); test.setUpDriver(EDGE); - test.driver.navigate().to("https://mui.com/components/dialogs/"); + test.driver.navigate().to("https://mui.com/material-ui/react-dialog/"); test.testBasicDialog(); test.testAlerts(); diff --git a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiSnackbarTestCases.java b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiSnackbarTestCases.java index cd5967e2..98976b14 100644 --- a/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiSnackbarTestCases.java +++ b/hamster-selenium-examples/src/test/java/com/github/grossopa/selenium/examples/mui/v5/feedback/MuiSnackbarTestCases.java @@ -48,8 +48,8 @@ public class MuiSnackbarTestCases extends AbstractBrowserSupport { /** * Tests the simple Snackbars. * - * @see - * https://mui.com/components/snackbars/#simple-snackbars + * @see + * https://mui.com/material-ui/react-snackbar/#simple-snackbars */ public void testSimpleSnackbars() { MuiButton simpleSnackbarButton = driver.findComponent(By.id("SimpleSnackbar.js")).findComponent(By2.parent()) @@ -79,7 +79,7 @@ public void testSimpleSnackbars() { public static void main(String[] args) { MuiSnackbarTestCases test = new MuiSnackbarTestCases(); test.setUpDriver(EDGE); - test.driver.navigate().to("https://mui.com/components/snackbars/"); + test.driver.navigate().to("https://mui.com/material-ui/react-snackbar/"); test.testSimpleSnackbars(); }