feat(ui): refresh dashboard and paper boat branding
This commit is contained in:
1 parent
308332eb94
commit
1752a5b685
93 files changed
+11134
-7543
No files matched your search
@@ -11,9 +11,10 @@ export class Dashboard {
|
||||
|
||||
async logout(): Promise<void> {
|
||||
await step('Log out', async () => {
|
||||
// The profile menu trigger is an avatar with no accessible name.
|
||||
await this.page.locator('.profile-trigger').click()
|
||||
await this.page.getByRole('button', { name: 'Logout' }).click()
|
||||
// The account block lives at the foot of the sidebar; the menu it opens
|
||||
// holds the sign-out action.
|
||||
await this.page.locator('.sidebar .me').click()
|
||||
await this.page.getByRole('button', { name: '退出登录' }).click()
|
||||
await expect(this.page).toHaveURL(/\/login/)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user