diff --git a/e2e/remote/list-scale.spec.ts b/e2e/remote/list-scale.spec.ts index cdbba33f..7337d5df 100644 --- a/e2e/remote/list-scale.spec.ts +++ b/e2e/remote/list-scale.spec.ts @@ -366,6 +366,9 @@ test.describe('@scale the file lists at 1000 or more repositories', () => { listTable(page, 'Repositories', { rows: true }), ).toBeVisible(); byLabel.push(elapsed(start)); + // the panel is still closing for a moment: a key pressed while it traps + // the focus never reaches the next filter's box + await expect(popover).toHaveCount(0); // base path await moveTo(page, 'file/repositories'); diff --git a/e2e/remote/permissions.editor.spec.ts b/e2e/remote/permissions.editor.spec.ts index 6a1c890d..58f347f0 100644 --- a/e2e/remote/permissions.editor.spec.ts +++ b/e2e/remote/permissions.editor.spec.ts @@ -264,7 +264,8 @@ async function rowsWithMenus( for (let index = 0; index < count; index += 1) { const row = rows.nth(index); found.push({ - name: (await row.locator('td').first().innerText()).trim(), + // the first cell holds the selection checkbox, the name is the link + name: ((await row.locator('td a').first().textContent()) ?? '').trim(), toggles: await row.locator('[data-cy=kebab-toggle]').count(), }); } diff --git a/e2e/shell/session-permission-states.spec.ts b/e2e/shell/session-permission-states.spec.ts index 3e63d2aa..ea7bc54d 100644 --- a/e2e/shell/session-permission-states.spec.ts +++ b/e2e/shell/session-permission-states.spec.ts @@ -741,16 +741,14 @@ test.describe('refused action alert', () => { await typeIntoEditForm(page); await saveRefusedWith(page, 403, { detail: REFUSED }); - // what happened, Pulp's reason and whom to ask, in one block of text - const message = page.locator('p.pulp-break-anywhere', { + // what happened, Pulp's reason and whom to ask, in the inline alert under + // the form, in that order + const alert = page.locator('.pf-v6-c-alert.pf-m-danger.pf-m-inline', { hasText: REFUSED, }); - await expect(message).toBeVisible(); - await expect(message).toContainText( - 'You do not have permission to do this.', - ); - await expect(message).toContainText( - 'Contact your organization administrator for more information.', + await expect(alert).toBeVisible(); + await expect(alert).toContainText( + /You do not have permission to do this\.\s*You do not have permission to perform this action\.\s*Contact your organization administrator for more information\./, ); await capture(page, 's3-form-save-refused'); });