Skip to content
Open
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
10 changes: 10 additions & 0 deletions .ibm/pipelines/resources/config_map/app-config-rhdh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,16 @@ permission:
extensions:
installation:
enabled: false
bulkImport:
instructionsEnabled: true
instructionsDefaultExpanded: true
instructionsSteps:
- id: "step1"
text: "Choose your source control platform"
icon: "kind:component"
- id: "step2"
text: "Browse and select repositories"
icon: "search"
buildInfo:
title: "RHDH Build info"
card:
Expand Down
38 changes: 38 additions & 0 deletions e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,44 @@ spec:
);
});

test("Bulk import plugin page", async () => {
await uiHelper.openSidebar("Bulk import");
await uiHelper.verifyHeading("Bulk import");
await expect(page.getByText("Import to Red Hat Developer")).toHaveAttribute(
"aria-expanded",
"true",
);
await page
.getByRole("button", { name: "Import to Red Hat Developer" })
.click();
await expect(page.getByText("Import to Red Hat Developer")).toHaveAttribute(
"aria-expanded",
"false",
);
await expect(
page.getByText("Source control tool", { exact: true }),
).toBeVisible();
await page.getByTestId("HelpOutlineIcon").hover();
await expect(
page.getByRole("tooltip", { name: "Importing requires approval." }),
).toBeVisible();
await expect(page.getByRole("radio", { name: "GitHub" })).toBeChecked();
await page.getByRole("radio", { name: "GitLab" }).check();
await expect(page.getByRole("radio", { name: "GitLab" })).toBeChecked();
await page.getByRole("radio", { name: "GitHub" }).check();
await expect(page.getByRole("article")).toMatchAriaSnapshot(`
- table:
- rowgroup:
- row "select all repositories Name URL Organization Status":
- columnheader "select all repositories Name":
- checkbox "select all repositories"
- text: Name
- columnheader "URL"
- columnheader "Organization"
- columnheader "Status"
`);
});

// 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 () => {
Expand Down
Loading