mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-16 01:47:25 +02:00
Use semantic click for logout instead of dispatchEvent
The dropdown already gets aria-label from data-tooltip-content via the ARIA dropdown patch, so we can open it with getByLabel and then click Sign Out normally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
30b9a05082
commit
40446b8795
@ -11,7 +11,7 @@ export async function login(page: Page) {
|
||||
}
|
||||
|
||||
export async function logout(page: Page) {
|
||||
await page.getByText('Sign Out').dispatchEvent('click');
|
||||
await page.waitForURL('**/');
|
||||
await page.getByLabel('Profile and Settings…').click();
|
||||
await page.getByText('Sign Out').click();
|
||||
await expect(page.getByRole('link', {name: 'Sign In'})).toBeVisible();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user