Skip to content

Commit bcca310

Browse files
chore(e2e): cherry-pick #2245 - add delay after template registration to prevent catalog open failure (#2264)
* add delay after template registration to prevent catalog open failure * add delay after template registration to prevent catalog open failure --------- Co-authored-by: Nick Boldt <[email protected]>
1 parent 52f0f57 commit bcca310

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

e2e-tests/playwright/e2e/catalog-scaffoldedfromLink.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ test.describe.serial("Link Scaffolded Templates to Catalog Items", () => {
4949
});
5050

5151
test("Create a React App using the newly registered Template", async () => {
52+
test.setTimeout(130000);
5253
await uiHelper.openSidebar("Catalog");
5354
await uiHelper.clickButton("Create");
5455
await uiHelper.searchInputPlaceholder("Create React App Template");
@@ -83,6 +84,7 @@ test.describe.serial("Link Scaffolded Templates to Catalog Items", () => {
8384
]);
8485

8586
await uiHelper.clickButton("Create");
87+
await page.waitForTimeout(5000);
8688
await uiHelper.clickLink("Open in catalog");
8789
});
8890

e2e-tests/playwright/e2e/plugins/bulk-import.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ test.describe.serial("Bulk Import plugin", () => {
6666
catalogRepoDetails.name,
6767
"Preview file",
6868
);
69-
await expect(await uiHelper.clickButton("Save")).not.toBeVisible();
69+
await expect(await uiHelper.clickButton("Save")).not.toBeVisible({
70+
timeout: 10000,
71+
});
7072
});
7173

7274
test("Add a Repository from the Organization Tab and Confirm its Preview", async () => {
@@ -131,7 +133,9 @@ test.describe.serial("Bulk Import plugin", () => {
131133
newRepoDetails.updatedComponentName,
132134
);
133135
await bulkimport.fillTextInputByNameAtt("prLabels", newRepoDetails.labels);
134-
await expect(await uiHelper.clickButton("Save")).not.toBeVisible();
136+
await expect(await uiHelper.clickButton("Save")).not.toBeVisible({
137+
timeout: 10000,
138+
});
135139

136140
const prCatalogInfoYaml = await APIHelper.getfileContentFromPR(
137141
newRepoDetails.owner,

e2e-tests/playwright/utils/quay/quay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class ImageRegistry {
55
static getAllCellsIdentifier() {
66
//create a regex to verify if the string contains pr on it
77

8-
const tagText = /pr/i;
8+
const tagText = /pr|next/i;
99
const lastModifiedDate = new RegExp(
1010
/^[A-Za-z]{3} \d{1,2}, \d{4}, \d{1,2}:\d{2} (AM|PM)$/,
1111
);

0 commit comments

Comments
 (0)