mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-06-01 19:01:37 +00:00
test(e2e): assert current session has no delete control
This commit is contained in:
@@ -45,4 +45,10 @@ test.describe('Sessions', () => {
|
||||
})
|
||||
expect(after.status()).toBe(401)
|
||||
})
|
||||
|
||||
test('current session cannot be deleted from the UI', async ({authenticatedPage: page}) => {
|
||||
await gotoUserSettings(page, 'sessions')
|
||||
const currentRow = page.locator('tr', {has: page.locator('.tag.is-primary')})
|
||||
await expect(currentRow.getByRole('button', {name: 'Delete'})).toHaveCount(0)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user