Skip to content

Commit 9bab27b

Browse files
[release-1.10] fix(quickstart): add missing Lightspeed quickstart entries (RHDHBUGS-3273) (#2626)
* fix(quickstart): add missing Lightspeed quickstart entries (RHDHBUGS-3273) (#2603) * fix(quickstart): add missing Lightspeed quickstart entries Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> * prettier fix Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> * disabling bundled quickstart Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> * updating e2e Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> --------- Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> * updating the e2e Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com> --------- Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
1 parent 01f04b8 commit 9bab27b

3 files changed

Lines changed: 135 additions & 3 deletions

File tree

workspaces/quickstart/e2e-tests/tests/config/app-config-rhdh.yaml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,94 @@ auth:
1616

1717
permission:
1818
enabled: true
19+
20+
app:
21+
quickstart:
22+
- title: Set up authentication
23+
titleKey: steps.setupAuthentication.title
24+
icon: Admin
25+
description: Set up secure login credentials to protect your account from unauthorized access.
26+
descriptionKey: steps.setupAuthentication.description
27+
cta:
28+
text: Learn more
29+
textKey: steps.setupAuthentication.ctaTitle
30+
link: https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/authentication_in_red_hat_developer_hub/
31+
- title: Configure RBAC
32+
titleKey: steps.configureRbac.title
33+
icon: Rbac
34+
description: Assign roles and permissions to control who can view, create, or edit resources, ensuring secure and efficient collaboration.
35+
descriptionKey: steps.configureRbac.description
36+
cta:
37+
text: Manage access
38+
textKey: steps.configureRbac.ctaTitle
39+
link: /rbac
40+
- title: Configure Git
41+
titleKey: steps.configureGit.title
42+
icon: Git
43+
description: Connect your Git providers, such as GitHub to manage code, automate workflows, and integrate with platform features.
44+
descriptionKey: steps.configureGit.description
45+
cta:
46+
text: Learn more
47+
textKey: steps.configureGit.ctaTitle
48+
link: https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/integrating_red_hat_developer_hub_with_github/
49+
- title: Manage plugins
50+
titleKey: steps.managePlugins.title
51+
icon: Plugins
52+
description: Browse and install extensions to add features, connect with external tools, and customize your experience.
53+
descriptionKey: steps.managePlugins.description
54+
cta:
55+
text: Explore plugins
56+
textKey: steps.managePlugins.ctaTitle
57+
link: /extensions
58+
- title: Import application
59+
roles:
60+
- developer
61+
icon: Import
62+
description: Import your existing code and services into the catalog to organize and access them through your developer portal.
63+
cta:
64+
text: Import
65+
link: /bulk-import
66+
- title: Learn about the Catalog
67+
roles:
68+
- developer
69+
icon: Catalog
70+
description: Discover all software components, services, and APIs, and view their owners and documentation.
71+
cta:
72+
text: View Catalog
73+
link: /catalog
74+
- title: Explore Self-service templates
75+
roles:
76+
- developer
77+
icon: SelfService
78+
description: Use our self-service templates to quickly set up new projects, services, or documentation.
79+
cta:
80+
text: Explore templates
81+
link: /create
82+
- title: Find all Learning Paths
83+
roles:
84+
- developer
85+
icon: Learning
86+
description: Integrate tailored e-learning into your workflows with Learning Paths to accelerate onboarding, close skill gaps, and promote best practices.
87+
cta:
88+
text: View Learning Paths
89+
link: /learning-paths
90+
- title: Set up Lightspeed
91+
titleKey: steps.setupLightspeed.title
92+
icon: Lightspeed
93+
description: Connect Lightspeed to a supported large language model (LLM) and configure permissions to provide your AI-powered assistance to your developers.
94+
descriptionKey: steps.setupLightspeed.description
95+
cta:
96+
text: Learn more
97+
textKey: steps.setupLightspeed.ctaTitle
98+
link: https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/interacting_with_red_hat_developer_lightspeed_for_red_hat_developer_hub/
99+
- title: Get started with Lightspeed
100+
titleKey: steps.getStartedWithLightspeed.title
101+
icon: Lightspeed
102+
roles:
103+
- developer
104+
description: Troubleshoot issues, generate code, and learn about platform resources using AI-powered chat.
105+
descriptionKey: steps.getStartedWithLightspeed.description
106+
cta:
107+
text: Learn more
108+
textKey: steps.getStartedWithLightspeed.ctaTitle
109+
link: https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/interacting_with_red_hat_developer_lightspeed_for_red_hat_developer_hub/

workspaces/quickstart/e2e-tests/tests/specs/quick-start.spec.ts

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ import { test, expect } from "@red-hat-developer-hub/e2e-test-utils/test";
22

33
test.describe("Test Quick Start plugin", () => {
44
test.beforeAll(async ({ rhdh }) => {
5-
await rhdh.configure({ auth: "keycloak" });
5+
await rhdh.configure({
6+
auth: "keycloak",
7+
disableWrappers: ["red-hat-developer-hub-backstage-plugin-quickstart"],
8+
});
69
await rhdh.deploy();
710
});
811

@@ -42,7 +45,17 @@ test.describe("Test Quick Start plugin", () => {
4245
await uiHelper.clickButtonByText("Explore plugins");
4346
await uiHelper.verifyText("Catalog");
4447
await uiHelper.verifyText(/Plugins \((\d+)\)/);
45-
await uiHelper.verifyText("25% progress");
48+
49+
await uiHelper.clickButtonByText("Set up Lightspeed");
50+
await uiHelper.verifyTextVisible(
51+
"Connect Lightspeed to a supported large language model",
52+
);
53+
await uiHelper.verifyButtonURL(
54+
"Learn more",
55+
"https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/interacting_with_red_hat_developer_lightspeed_for_red_hat_developer_hub/",
56+
{ exact: false },
57+
);
58+
await uiHelper.verifyText("20% progress");
4659

4760
await uiHelper.clickButton("Hide");
4861
await expect(page.getByRole("button", { name: "Hide" })).toBeHidden();
@@ -74,6 +87,14 @@ test.describe("Test Quick Start plugin", () => {
7487
await uiHelper.verifyButtonURL("View Learning Paths", "/learning-paths");
7588
await uiHelper.clickButtonByText("View Learning Paths");
7689
await uiHelper.verifyHeading("Learning Paths");
77-
await uiHelper.verifyText("75% progress");
90+
91+
await uiHelper.clickButtonByText("Get started with Lightspeed");
92+
await uiHelper.verifyTextVisible("Troubleshoot issues, generate code");
93+
await uiHelper.verifyButtonURL(
94+
"Learn more",
95+
"https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/interacting_with_red_hat_developer_lightspeed_for_red_hat_developer_hub/",
96+
{ exact: false },
97+
);
98+
await uiHelper.verifyText("60% progress");
7899
});
79100
});

workspaces/quickstart/metadata/rhdh-bsp-quickstart.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,26 @@ spec:
9898
cta:
9999
text: View Learning Paths
100100
link: /learning-paths
101+
- title: Set up Lightspeed
102+
titleKey: steps.setupLightspeed.title
103+
icon: Lightspeed
104+
description: Connect Lightspeed to a supported large language model (LLM) and configure permissions to provide your AI-powered assistance to your developers.
105+
descriptionKey: steps.setupLightspeed.description
106+
cta:
107+
text: Learn more
108+
textKey: steps.setupLightspeed.ctaTitle
109+
link: https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/interacting_with_red_hat_developer_lightspeed_for_red_hat_developer_hub/
110+
- title: Get started with Lightspeed
111+
titleKey: steps.getStartedWithLightspeed.title
112+
icon: Lightspeed
113+
roles:
114+
- developer
115+
description: Troubleshoot issues, generate code, and learn about platform resources using AI-powered chat.
116+
descriptionKey: steps.getStartedWithLightspeed.description
117+
cta:
118+
text: Learn more
119+
textKey: steps.getStartedWithLightspeed.ctaTitle
120+
link: https://docs.redhat.com/en/documentation/red_hat_developer_hub/latest/html/interacting_with_red_hat_developer_lightspeed_for_red_hat_developer_hub/
101121
dynamicPlugins:
102122
frontend:
103123
red-hat-developer-hub.backstage-plugin-quickstart:

0 commit comments

Comments
 (0)