Skip to content

Commit

Permalink
4914_cardTestsRefFooterAdded
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaElf committed Nov 24, 2023
1 parent e860de1 commit d5e1bb3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ public class CardPage extends NewAngularPage {

@UI("#example-card")
public static Card card;

@UI("#card-with-footer")
public static Card cardWithFooter;


}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import static com.jdiai.tools.Timer.waitCondition;
import static io.github.com.StaticSite.cardPage;
import static io.github.com.pages.CardPage.card;
import static io.github.com.pages.CardPage.cardWithFooter;
import static io.github.com.pages.CardPage.simpleCard;


Expand Down Expand Up @@ -43,6 +44,8 @@ public void displayedCardTest() {
card.getSubtitle().is().text("Dog Breed");
card.getImage().is().displayed();
card.getContent().is().displayed();
cardWithFooter.show();
cardWithFooter.getFooter().is().displayed();
}

@Test(description = "Test verifies number and text of card buttons")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ public UIElement getHeader() {
return this.find(".mat-mdc-card-header");
}

@JDIAction("Get '{name}' footer")
public UIElement getFooter() {
return this.find(".mat-mdc-card-footer");
}

@JDIAction("Get '{name}' avatar")
public UIElement getAvatar() {
return this.find(".mat-mdc-card-avatar");
Expand Down

0 comments on commit d5e1bb3

Please sign in to comment.