test: add change own user data test

This commit is contained in:
Jakub P.
2024-09-24 18:42:30 +02:00
parent c8dae9ea9a
commit 55ebe2cc0b
5 changed files with 126 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ export class AuthenticatedPage extends BasePage {
super(page);
this.profileMenuButton = this.page.getByTestId('profile-menu-button');
this.logoutMenuItem = this.page.getByTestId('logout-item');
this.adminMenuItem = this.page.getByRole('menuitem', { name: 'Admin' });
this.userInterfaceDrawerItem = this.page.getByTestId(
'user-interface-drawer-link'
@@ -18,4 +19,9 @@ export class AuthenticatedPage extends BasePage {
this.typographyLogo = this.page.getByTestId('typography-logo');
this.customLogo = this.page.getByTestId('custom-logo');
}
async logout() {
await this.profileMenuButton.click();
await this.logoutMenuItem.click();
}
}