Skip to content

Commit a763e6b

Browse files
authored
OBPIH-6909 Unify manu items roles (#48)
1 parent 80c58ee commit a763e6b

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/components/Navbar.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ class Navbar extends BasePageModel {
2424
}
2525

2626
getNavItem(name: string) {
27-
return this.navbar.getByRole('link', { name: name, exact: true });
28-
}
29-
30-
get logoutButton() {
31-
return this.navbar.getByRole('menuitem', { name: 'Logout' });
27+
return this.navbar.getByRole('menuitem', { name: name, exact: true });
3228
}
3329

3430
get editProfileButton() {

src/tests/locationChooser/locationInLocationChooserBasedOnUserPermissions.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,7 @@ test.describe('Check if ward location is present in location chooser based on us
856856
}
857857
);
858858

859-
// TODO: OBPIH-6909 Fix menu clicking when impersonating users
860-
test.skip('Assert created Ward on location chooser in impersonate mode', async ({
859+
test('Assert created Ward on location chooser in impersonate mode', async ({
861860
userListPage,
862861
editUserPage,
863862
}) => {

src/tests/users/userPermission.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ test('Add default location for user and auto-login to location', async ({
9696
await expect(newUserPage.getByText('My Dashboard')).toBeVisible();
9797
});
9898

99-
// TODO: OBPIH-6909 Fix menu clicking when impersonating users
100-
test.skip('Impersonate created user', async ({ editUserPage }) => {
99+
test('Impersonate created user', async ({ editUserPage }) => {
101100
await test.step('Select role "Manager"', async () => {
102101
await editUserPage.authorizationTabSection.defaultRoleSelect.click();
103102
await editUserPage.authorizationTabSection.getUserRole('Manager').click();

0 commit comments

Comments
 (0)