Skip to content

Commit

Permalink
Adjust locator for card
Browse files Browse the repository at this point in the history
  • Loading branch information
catastrophe-brandon committed Jan 12, 2024
1 parent 5391c48 commit 7e4cafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgetastic_patternfly5/components/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def footer(self):

class Card(BaseCard, GenericLocatorWidget):
DEFAULT_LOCATOR = (
".//div[@data-ouia-component-type='PF5/Card'] | .//article[contains(@class, 'pf-c-card')]"
".//div[@data-ouia-component-type='PF5/Card'] | .//article[contains(@class, '-c-card')]"
)

def __init__(self, parent, locator=None, logger=None):
Expand All @@ -47,7 +47,7 @@ def __init__(self, parent, locator=None, logger=None):

class CardForCardGroup(BaseCard, ParametrizedView):
DEFAULT_LOCATOR = (
"(.//div[@data-ouia-component-type='PF5/Card'] | .//article[contains(@class, 'pf-c-card')])"
"(.//div[@data-ouia-component-type='PF5/Card'] | .//article[contains(@class, '-c-card')])"
)

def __init__(self, parent, locator=None, logger=None, **kwargs):
Expand Down

0 comments on commit 7e4cafd

Please sign in to comment.