Skip to content

Commit 52a27bd

Browse files
committed
fix(#1369486): e2e - ensure user is logged out before changing role
1 parent 7779f57 commit 52a27bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

front/e2e/src/tests/pages/admin/settings/users.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable testing-library/prefer-screen-queries */
22
import {expect, test} from '@playwright/test'
3-
import {login, UserRole} from '../../../../helper/auth'
3+
import { login, logout, UserRole } from '../../../../helper/auth'
44
import {navigateTo} from '../../../../helper/menu'
55
import {Dropdown} from '../../../../helper/dropdown'
66
import {Tabs} from '../../../../helper/tabs'
@@ -111,6 +111,8 @@ test('Pages > Configuration > Users', { tag: ['@premium', '@standard'] }, async
111111
await page.goto('/admin/settings/user/edit?id=1')
112112
await expect(page).toHaveURL('admin/settings/scope/catalogs')
113113
})
114+
115+
await logout(page)
114116
})
115117

116118
await test.step('Login and navigate to the users page as ADMIN', async () => {

0 commit comments

Comments
 (0)