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
2 changes: 1 addition & 1 deletion playwright/BootTests/Compliance/ComplianceCIS.boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('Compliance step integration test - CIS', async ({ page, cleanup }) => {
await test.step('Create a Compliance policy', async () => {
await navigateToCompliance(page);
await page.getByRole('button', { name: 'Create new policy' }).click();
await page.getByRole('option', { name: 'RHEL 10' }).click();
await page.locator('label[for="rhel10-input"]').click();
await expect(
page.getByRole('gridcell', { name: 'ANSSI-BP-028 (enhanced)' }).first(),
).toBeVisible(); // Wait for the policy type list to load
Expand Down
3 changes: 2 additions & 1 deletion playwright/BootTests/Compliance/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ export const createCompliancePolicy = async (
});
await expect(createButton).toBeVisible();
await createButton.click();
await page.getByRole('option', { name: distro }).click();
const distroId = distro.replace(/\s+/g, '').toLowerCase() + '-input';
await page.locator(`label[for="${distroId}"]`).click();

// Wait for the policy type list to load before searching
await expect(page.getByRole('gridcell').first()).toBeVisible({
Expand Down
Loading