diff --git a/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/GridListTests.java b/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/GridListTests.java index d0552ef4d0..e2566cb077 100644 --- a/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/GridListTests.java +++ b/jdi-light-angular-tests/src/test/java/io/github/epam/angular/tests/elements/complex/GridListTests.java @@ -57,7 +57,7 @@ public void dynamicGridListTest() { .and().footerBackgroundColor(WHITE_TRANSPARENT_038.value()) .and().headerColor(AngularColors.fromColor(WHITE_TRANSPARENT_038.value())) .and().headerBackgroundColor(AngularColors.fromColor(WHITE_TRANSPARENT_038.value())) - .and().text("Three") + .and().text("Mat Grid Header\nThree\nMat Grid Footer") .and().footerText("Mat Grid Footer") .and().headerText("Mat Grid Header"); diff --git a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/gridlist/GridTile.java b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/gridlist/GridTile.java index d7d5fa3b72..c7014ffeba 100644 --- a/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/gridlist/GridTile.java +++ b/jdi-light-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/gridlist/GridTile.java @@ -10,7 +10,6 @@ public class GridTile extends UIBaseElement implements HasColor private static final String HEADER_LOCATOR = ".mat-grid-tile-header"; private static final String FOOTER_LOCATOR = ".mat-grid-tile-footer"; - private static final String TEXT_LOCATOR = ".mat-grid-tile-text"; @Override public GridTileAssert is() { @@ -34,7 +33,7 @@ public int rowspan() { @JDIAction(value = "Get '{name}' tile text") public String text() { - return core().find(TEXT_LOCATOR).text(); + return core().text(); } @JDIAction("Get '{name}' header color")