Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions e2e/remote/list-scale.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 2 additions & 1 deletion e2e/remote/permissions.editor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
}
Expand Down
14 changes: 6 additions & 8 deletions e2e/shell/session-permission-states.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down
Loading