diff --git a/.ibm/pipelines/resources/config_map/app-config-rhdh.yaml b/.ibm/pipelines/resources/config_map/app-config-rhdh.yaml index fcb19321f8..ce5fdd943a 100644 --- a/.ibm/pipelines/resources/config_map/app-config-rhdh.yaml +++ b/.ibm/pipelines/resources/config_map/app-config-rhdh.yaml @@ -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: diff --git a/e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts b/e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts index b9419175ff..730ce80f6c 100644 --- a/e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts +++ b/e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts @@ -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 () => {