Skip to content

Commit c255876

Browse files
committed
Ensure "Ansible Engine for RHEL 8" checkbox is selected in CI
In our CI environment, no repositories other than "Ansible Engine for RHEL 8" are available. This repository is not included by default and requires manual selection by checking the corresponding checkbox. Without this selection, progression to the next step is blocked.
1 parent c52e6a1 commit c255876

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

_playwright-tests/UI/Templates.spec.ts

+9-5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ test.describe('Templates', () => {
1717
// Add the step to select 'Red hat repos Checkbox'
1818
await page.getByRole('button', { name: 'Next' }).click();
1919
// Add the step to select 'checkbox for cutom repo'
20+
// // Locate the checkbox in the table row
21+
// const tableRowSelector = 'table tr:nth-child(2)'; // Adjust to target the specific row
22+
// const checkboxSelector = `${tableRowSelector} input[type="checkbox"]`;
23+
// // Wait for the checkbox to be visible and click it
24+
// await page.waitForSelector(checkboxSelector);
25+
// await page.click(checkboxSelector);
2026
await page.getByRole('button', { name: 'Next' }).click();
21-
await page.locator('input[name="use-latest-snapshot"]').click();
27+
page.getByRole('radio', { name: 'Use latest content' }); // try this
2228
await page.getByRole('button', { name: 'Next' }).click();
23-
const nameInput = page.getByPlaceholder('Enter name');
24-
// const descriptionInput = page.getByPlaceholder('Enter Description');
25-
await nameInput.fill('demo_template');
26-
// await descriptionInput.fill('test');
29+
await page.getByPlaceholder('Enter name').fill('demo_template');
30+
// await page.getByPlaceholder('Enter Description').fill('test');
2731
await page.getByRole('button', { name: 'Next' }).click();
2832
// Add steps to create teamplate with system if you want to
2933
await page.locator('button.pf-v5-c-menu-toggle__button').click();

0 commit comments

Comments
 (0)