1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-08 07:59:15 +00:00

tests: wait for network

This commit is contained in:
Kyle Mendell
2025-05-21 18:24:28 -05:00
committed by Elias Schneider
parent 21cb3310d6
commit 53f212fd3a
2 changed files with 5 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ test.describe('LDAP Integration', () => {
test('LDAP users cannot be modified in PocketID', async ({ page }) => {
// Navigate to LDAP user details
await page.goto('/settings/admin/users');
await page.waitForLoadState('networkidle');
await page.getByRole('row', { name: 'testuser1' }).getByRole('button').click();
await page.getByRole('menuitem', { name: 'Edit' }).click();
@@ -76,6 +78,8 @@ test.describe('LDAP Integration', () => {
test('LDAP groups cannot be modified in PocketID', async ({ page }) => {
// Navigate to LDAP group details
await page.goto('/settings/admin/user-groups');
await page.waitForLoadState('networkidle');
await page
.getByRole('row', { name: 'test_group' })
.locator('#bits-10')

View File

@@ -25,7 +25,7 @@ test('Edit user group', async ({ page }) => {
await page.goto('/settings/admin/user-groups');
const group = userGroups.developers;
await page.getByRole('row', { name: group.name }).getByRole('button').click();
await page.getByRole('row', { name: group.name }).locator('#bits-5').getByRole('button').click();
await page.getByRole('menuitem', { name: 'Edit' }).click();
await page.getByLabel('Friendly Name').fill('Developers updated');