From d9d44427a64b29868f00a17e84a27e62d09a4c33 Mon Sep 17 00:00:00 2001 From: Natalia Pozhidaeva Date: Tue, 23 Apr 2024 00:14:10 -0500 Subject: [PATCH] #5349 Fix appbar locator --- .../java/io/github/com/pages/surfaces/BackToTopAppBarPage.java | 3 +-- .../com/epam/jdi/light/material/elements/surfaces/AppBar.java | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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 393ed77db2..f965e84e6b 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,8 +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]") + @UI(".MuiAppBar-root") public static AppBar backToTopAppBar; @UI("div[role=presentation]") diff --git a/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/surfaces/AppBar.java b/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/surfaces/AppBar.java index e22b8607c6..13d92109a1 100644 --- a/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/surfaces/AppBar.java +++ b/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/surfaces/AppBar.java @@ -21,6 +21,7 @@ */ public class AppBar extends Section implements HasPosition, HasColor { + // @todo #5349 Toolbar class should be created with this API https://v4.mui.com/api/toolbar/ @UI(".MuiToolbar-root") public UIElement content;