Skip to content
Draft
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
17 changes: 13 additions & 4 deletions e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
test.describe.serial("Bulk Import plugin", () => {
test.skip(() => process.env.JOB_NAME.includes("osd-gcp")); // skipping due to RHIDP-5704 on OSD Env
// TODO: https://issues.redhat.com/browse/RHDHBUGS-2116
test.fixme(() => process.env.JOB_TYPE.includes("presubmit")); // skip on PR checks
// test.fixme(() => process.env.JOB_TYPE.includes("presubmit")); // skip on PR checks
test.fixme(() => !process.env.JOB_NAME.includes("ocp")); // run only on OCP jobs to avoid GH rate limit
test.describe.configure({ retries: process.env.CI ? 5 : 0 });

Expand Down Expand Up @@ -80,10 +80,17 @@ spec:
);
});

// TODO: https://issues.redhat.com/browse/RHDHBUGS-2230
// Select two repos: one with an existing catalog.yaml file and another without it
test.fixme("Add a Repository from the Repository Tab and Confirm its Preview", async () => {
test("Add a Repository from the Repository Tab and Confirm its Preview", async () => {
await uiHelper.openSidebar("Bulk import");
await page
.getByText("Ready to import")
.first()
.waitFor({ state: "visible" });
await uiHelper.searchInputPlaceholder(catalogRepoDetails.name);
await expect(page.getByText("Ready to import")).toHaveCount(1);
await page.getByRole("checkbox").first().click();

await uiHelper.clickButton("Import");
await uiHelper.searchInputPlaceholder(catalogRepoDetails.name);

Expand All @@ -100,7 +107,9 @@ spec:
catalogRepoDetails.name,
"Preview file",
);
await expect(await uiHelper.clickButton("Save")).not.toBeVisible({
const saveButton = page.getByRole("button", { name: "Save" });
await saveButton.click();
await expect(saveButton).not.toBeVisible({
timeout: 10000,
});
});
Expand Down
Loading