Skip to content

Commit 9c83e53

Browse files
authored
test: fix broken reference string on 1.5 (#3158)
* Update catalog.spec.ts * Update techdocs.spec.ts * Update quay.spec.ts * Update verify-redis-cache.spec.ts * Update catalog.spec.ts * Update catalog.spec.ts * Update catalog.spec.ts
1 parent f1bac04 commit 9c83e53

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

e2e-tests/playwright/e2e/audit-log/catalog.spec.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,23 @@ test.describe("Audit Log check for Catalog Plugin", () => {
5252
);
5353
});
5454

55-
test("Should fetch logs for CatalogEntityFetchByName event and validate log structure and values", async () => {
55+
// skipping until RHDHBUGS-1900 is fixed
56+
test.skip("Should fetch logs for CatalogEntityFetchByName event and validate log structure and values", async () => {
5657
await uiHelper.selectMuiBox("Kind", "Component");
5758
await uiHelper.clickByDataTestId("user-picker-all");
58-
await uiHelper.clickLink("Backstage Showcase");
59+
await uiHelper.clickLink("Red Hat Developer Hub");
5960
await validateCatalogLogEvent(
6061
"CatalogEntityFetchByName",
61-
"Fetch attempt for entity with entityRef component:default/backstage-showcase",
62+
"Fetch attempt for entity ancestor of entity component:default/red-hat-developer-hub initiated by user:development/guest",
6263
"GET",
63-
"/api/catalog/entities/by-name/component/default/backstage-showcase",
64+
"/api/catalog/entities/by-name/component/default/red-hat-developer-hub",
6465
);
6566
});
6667

6768
test("Should fetch logs for CatalogEntityBatchFetch event and validate log structure and values", async () => {
6869
await uiHelper.selectMuiBox("Kind", "Component");
6970
await uiHelper.clickByDataTestId("user-picker-all");
70-
await uiHelper.clickLink("Backstage Showcase");
71+
await uiHelper.clickLink("Red Hat Developer Hub");
7172
await validateCatalogLogEvent(
7273
"CatalogEntityBatchFetch",
7374
"Batch entity fetch attempt",
@@ -79,12 +80,12 @@ test.describe("Audit Log check for Catalog Plugin", () => {
7980
test("Should fetch logs for CatalogEntityAncestryFetch event and validate log structure and values", async () => {
8081
await uiHelper.selectMuiBox("Kind", "Component");
8182
await uiHelper.clickByDataTestId("user-picker-all");
82-
await uiHelper.clickLink("Backstage Showcase");
83+
await uiHelper.clickLink("Red Hat Developer Hub");
8384
await validateCatalogLogEvent(
8485
"CatalogEntityAncestryFetch",
85-
"Fetch attempt for entity ancestor of entity component:default/backstage-showcase",
86+
"Fetch attempt for entity ancestor of entity component:default/red-hat-developer-hub initiated by user:development/guest",
8687
"GET",
87-
"/api/catalog/entities/by-name/component/default/backstage-showcase/ancestry",
88+
"/api/catalog/entities/by-name/component/default/red-hat-developer-hub/ancestry",
8889
);
8990
});
9091

e2e-tests/playwright/e2e/plugins/quay/quay.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test.describe("Test Quay.io plugin", () => {
1515
await uiHelper.openSidebar("Catalog");
1616
await uiHelper.selectMuiBox("Kind", "Component");
1717
await uiHelper.clickByDataTestId("user-picker-all");
18-
await uiHelper.clickLink("Backstage Showcase");
18+
await uiHelper.clickLink("Red Hat Developer Hub");
1919
await uiHelper.clickTab("Image Registry");
2020
});
2121

e2e-tests/playwright/e2e/techdocs.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ test.describe("TechDocs", () => {
3838
await uiHelper.openSidebar("Docs");
3939
});
4040

41-
test("Verify that TechDocs Docs page for Backstage Showcase works", async ({
41+
test("Verify that TechDocs Docs page for Red Hat Developer Hub works", async ({
4242
page,
4343
}) => {
4444
await uiHelper.openSidebarButton("Favorites");
4545
await uiHelper.openSidebar("Docs");
46-
await page.getByRole("link", { name: "Backstage Showcase" }).click();
46+
await page.getByRole("link", { name: "Red Hat Developer Hub" }).click();
4747
await uiHelper.waitForTitle("Getting Started running RHDH", 1);
4848
});
4949

50-
test("Verify that TechDocs entity tab page for Backstage Showcase works", async () => {
51-
await catalog.goToByName("Backstage Showcase");
50+
test("Verify that TechDocs entity tab page for Red Hat Developer Hub works", async () => {
51+
await catalog.goToByName("Red Hat Developer Hub");
5252
await uiHelper.clickTab("Docs");
5353
await uiHelper.waitForTitle("Getting Started running RHDH", 1);
5454
});
@@ -58,7 +58,7 @@ test.describe("TechDocs", () => {
5858
}) => {
5959
await uiHelper.openSidebarButton("Favorites");
6060
await uiHelper.openSidebar("Docs");
61-
await page.getByRole("link", { name: "Backstage Showcase" }).click();
61+
await page.getByRole("link", { name: "Red Hat Developer Hub" }).click();
6262
await page.waitForSelector("article a");
6363
await docsTextHighlight(page);
6464
const link = await page.waitForSelector("text=Open new Github issue");
@@ -68,7 +68,7 @@ test.describe("TechDocs", () => {
6868
test("Verify that TechDocs entity tab page for ReportIssue addon works", async ({
6969
page,
7070
}) => {
71-
await catalog.goToByName("Backstage Showcase");
71+
await catalog.goToByName("Red Hat Developer Hub");
7272
await uiHelper.clickTab("Docs");
7373
await page.waitForSelector("article a");
7474
await docsTextHighlight(page);

e2e-tests/playwright/e2e/verify-redis-cache.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test.describe("Verify Redis Cache DB", () => {
2727

2828
await uiHelper.openSidebarButton("Favorites");
2929
await uiHelper.openSidebar("Docs");
30-
await uiHelper.clickLink("Backstage Showcase");
30+
await uiHelper.clickLink("Red Hat Developer Hub");
3131

3232
// ensure that the docs are generated. if redis configuration has an error, this page will hang and docs won't be generated
3333
await expect(async () => {

0 commit comments

Comments
 (0)