@camunda/e2e-test-suite 0.0.894 → 0.0.895
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,6 +48,20 @@ declare class ModelerHomePage {
|
|
|
48
48
|
clickOpenOrganizationsButton(): Promise<void>;
|
|
49
49
|
clickCrossComponentProjectFolder(): Promise<void>;
|
|
50
50
|
createCrossComponentProjectFolder(): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Asserts the Cross Component project folder is listed on the Modeler home
|
|
53
|
+
* page.
|
|
54
|
+
*
|
|
55
|
+
* A freshly created project is renamed in place (`POST /projects` then
|
|
56
|
+
* `PATCH /projects/<id>`), but the home page renders from the project list
|
|
57
|
+
* that was fetched at creation time — i.e. before the rename landed — and
|
|
58
|
+
* clicking the Home breadcrumb is client-side routing that does not
|
|
59
|
+
* re-fetch it. The row therefore keeps showing the placeholder
|
|
60
|
+
* "New project" name indefinitely, so a plain visibility wait can never
|
|
61
|
+
* resolve however long it is given. Reload between attempts so the
|
|
62
|
+
* assertion sees the committed name.
|
|
63
|
+
*/
|
|
64
|
+
assertCrossComponentProjectFolderVisible(): Promise<void>;
|
|
51
65
|
clickManageButton(retries?: number): Promise<void>;
|
|
52
66
|
clickUploadFilesButton(): Promise<void>;
|
|
53
67
|
clickMessageBanner(): Promise<void>;
|
|
@@ -4,6 +4,7 @@ exports.ModelerHomePage = void 0;
|
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const sleep_1 = require("../../utils/sleep");
|
|
6
6
|
const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
|
|
7
|
+
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
8
|
class ModelerHomePage {
|
|
8
9
|
defaultFolderName = 'Cross Component Test Project';
|
|
9
10
|
page;
|
|
@@ -227,6 +228,30 @@ class ModelerHomePage {
|
|
|
227
228
|
await this.clickCreateNewProjectButton();
|
|
228
229
|
await this.enterNewProjectName(this.defaultFolderName);
|
|
229
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* Asserts the Cross Component project folder is listed on the Modeler home
|
|
233
|
+
* page.
|
|
234
|
+
*
|
|
235
|
+
* A freshly created project is renamed in place (`POST /projects` then
|
|
236
|
+
* `PATCH /projects/<id>`), but the home page renders from the project list
|
|
237
|
+
* that was fetched at creation time — i.e. before the rename landed — and
|
|
238
|
+
* clicking the Home breadcrumb is client-side routing that does not
|
|
239
|
+
* re-fetch it. The row therefore keeps showing the placeholder
|
|
240
|
+
* "New project" name indefinitely, so a plain visibility wait can never
|
|
241
|
+
* resolve however long it is given. Reload between attempts so the
|
|
242
|
+
* assertion sees the committed name.
|
|
243
|
+
*/
|
|
244
|
+
async assertCrossComponentProjectFolderVisible() {
|
|
245
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.crossComponentProjectFolder, {
|
|
246
|
+
totalTimeout: 120000,
|
|
247
|
+
visibilityTimeout: 20000,
|
|
248
|
+
maxRetries: 4,
|
|
249
|
+
postAction: async () => {
|
|
250
|
+
await this.page.reload();
|
|
251
|
+
await this.dismissOverlays();
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
}
|
|
230
255
|
async clickManageButton(retries = 3) {
|
|
231
256
|
await this.optionsButton.click({ timeout: 30000 });
|
|
232
257
|
for (let i = 0; i < retries; i++) {
|
|
@@ -75,9 +75,7 @@ _8_7_1.test.describe('Cluster Setup Tests', () => {
|
|
|
75
75
|
await homePage.clickSkipCustomization();
|
|
76
76
|
await modelerHomePage.createCrossComponentProjectFolder();
|
|
77
77
|
await modelerHomePage.clickHomeBreadcrumb();
|
|
78
|
-
await
|
|
79
|
-
timeout: 60000,
|
|
80
|
-
});
|
|
78
|
+
await modelerHomePage.assertCrossComponentProjectFolderVisible();
|
|
81
79
|
});
|
|
82
80
|
});
|
|
83
81
|
}
|
|
@@ -419,7 +419,8 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
419
419
|
await (0, UtilitiesPage_1.assertPageTextWithRetry)(page, emailAddress, false, 60000);
|
|
420
420
|
});
|
|
421
421
|
});
|
|
422
|
-
|
|
422
|
+
// Skipped due to bug #4677: https://github.com/camunda/web-modeler/issues/4677
|
|
423
|
+
_8_7_1.test.skip('Invite Existing C8 member to Web Modeler flow', async ({ page, loginPage, signUpPage, homePage, modelerUserInvitePage, appsPage, modelerHomePage, settingsPage, }, testInfo) => {
|
|
423
424
|
_8_7_1.test.slow();
|
|
424
425
|
const { id, emailAddress } = await (0, mailSlurpClient_1.createInbox)();
|
|
425
426
|
inboxes[testInfo.title] = id;
|