Skip to content

Commit

Permalink
text method updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinaLysenko committed Jan 4, 2024
1 parent c20c5d8 commit 763b7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class GridTile extends UIBaseElement<GridTileAssert> 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() {
Expand All @@ -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")
Expand Down

0 comments on commit 763b7b9

Please sign in to comment.