Skip to content

Commit e531eec

Browse files
committed
Update UI selectors for new table on p/admin/account/users
1 parent 268c3f1 commit e531eec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

testsuite/ui/views/admin/settings/user.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ class UsersView(BaseSettingsView):
3030

3131
path_pattern = "/p/admin/account/users"
3232
table = PatternflyTable(
33-
'//*[@id="users"]',
34-
column_widgets={"Invite a New User": ThreescaleDeleteEditGroup()},
33+
"//table[@aria-label='Users table']",
34+
column_widgets={4: ThreescaleDeleteEditGroup()},
3535
)
3636

3737
@step("UserDetailView")
3838
def detail(self, user):
3939
"""Opens detail Account by ID"""
40-
self.table.row(_row__attr=("id", "user_" + str(user.entity_id))).invite_a_new_user.widget.edit()
40+
self.table.row(_row__attr=("id", "user_" + str(user.entity_id)))[4].widget.edit()
4141

4242
def delete(self, user):
4343
"""Delete user by ID"""
44-
self.table.row(_row__attr=("id", "user_" + str(user.entity_id))).invite_a_new_user.widget.delete()
44+
self.table.row(_row__attr=("id", "user_" + str(user.entity_id)))[4].widget.delete()
4545

4646
def prerequisite(self):
4747
return BaseSettingsView

testsuite/ui/widgets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ class ThreescaleDeleteEditGroup(GenericLocatorWidget):
488488
"""Special Delete Edit group for 3scale"""
489489

490490
DELETE_LOCATOR = ".//button[contains(@class, delete)]"
491-
EDIT_LOCATOR = ".//a[@title='Edit']"
491+
EDIT_LOCATOR = ".//a[text()='Edit']"
492492

493493
def __init__(self, parent=None, locator=".//*[@class='pf-c-overflow-menu']", logger=None):
494494
super().__init__(parent=parent, locator=locator, logger=logger)

0 commit comments

Comments
 (0)