test: add change own user data test
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user