Skip to content

Commit

Permalink
Merge pull request #5477 from jdi-testing/5359
Browse files Browse the repository at this point in the history
#5359 fix locators to be clear
  • Loading branch information
pnatashap authored Apr 18, 2024
2 parents a879e85 + ea29b42 commit c109bb3
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,26 @@

public class CardsPage extends VuetifyPage {

// @todo #5298 Localors should use .v-card class
@UI("//div[@class='container' and .//h2[contains(text(), 'Information Cards')]]/div")
@UI(".//h2[contains(text(), 'Information Cards')]/following::div[contains(@class, 'v-card')]")
public static InformationCard informationCard;

@UI("//div[@class='container' and .//h2[contains(text(), 'Outlined Card')]]/div")
@UI(".//h2[contains(text(), 'Outlined Card')]/following::div[contains(@class, 'v-card')]")
public static OutlinedCard outlinedCard;

@UI("//div[@class='container' and .//h2[contains(text(), 'Media with text')]]/div")
@UI(".//h2[contains(text(), 'Media with text')]/following::div[contains(@class, 'v-card')]")
public static MediaTextCard mediaTextCard;

@WaitAfterAction(1)
@UI("//div[@class='container' and .//h2[contains(text(), 'Loading')]]/div")
@UI(".//h2[contains(text(), 'Loading')]/following::div[contains(@class, 'v-card')]")
public static LoadingCard loadingCard;

@WaitAfterAction(1)
@UI("//div[@class='container' and .//h2[contains(text(), 'Card Reveal')]]/div")
@UI(".//h2[contains(text(), 'Card Reveal')]/following::div[contains(@class, 'v-card')]")
public static Card revealCard;

@UI("//div[@class='container' and .//h2[contains(text(), 'Custom Actions')]]/div")
@UI(".//h2[contains(text(), 'Custom Actions')]/following::div[contains(@class, 'v-card')]")
public static CustomActionsCard customActionsCard;

@UI("//*[contains(text(), 'Various Attributes Card')]/following-sibling::div//*[contains(@class, 'v-card') and contains(@class, 'v-sheet')]")
@UI(".//h2[contains(text(), 'Various Attributes Card')]/following::div[contains(@class, 'v-sheet')]")
public static List<Card> variousAttributesCards;
}

0 comments on commit c109bb3

Please sign in to comment.