@camunda/e2e-test-suite 0.0.197 → 0.0.199
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.
|
@@ -24,6 +24,7 @@ declare class OCTenantPage {
|
|
|
24
24
|
readonly roleIdSearchBox: Locator;
|
|
25
25
|
readonly assignRoleSubButton: Locator;
|
|
26
26
|
readonly cancelButton: Locator;
|
|
27
|
+
readonly gotItButton: Locator;
|
|
27
28
|
readonly row: (name: string) => Locator;
|
|
28
29
|
constructor(page: Page);
|
|
29
30
|
clickCreateTenantMainButton(): Promise<void>;
|
|
@@ -44,6 +45,7 @@ declare class OCTenantPage {
|
|
|
44
45
|
createTenant(tenantName: string): Promise<void>;
|
|
45
46
|
assertTenantCreated(): Promise<void>;
|
|
46
47
|
clickCancelButton(): Promise<void>;
|
|
48
|
+
clickGotItButton(): Promise<void>;
|
|
47
49
|
clickTenant(tenantName: string): Promise<void>;
|
|
48
50
|
assignUserToTenant(user: string): Promise<void>;
|
|
49
51
|
removeUserFromTenant(tenantName: string): Promise<void>;
|
|
@@ -30,6 +30,7 @@ class OCTenantPage {
|
|
|
30
30
|
roleIdSearchBox;
|
|
31
31
|
assignRoleSubButton;
|
|
32
32
|
cancelButton;
|
|
33
|
+
gotItButton;
|
|
33
34
|
row;
|
|
34
35
|
constructor(page) {
|
|
35
36
|
this.page = page;
|
|
@@ -78,6 +79,7 @@ class OCTenantPage {
|
|
|
78
79
|
this.cancelButton = page
|
|
79
80
|
.getByRole('dialog')
|
|
80
81
|
.getByRole('button', { name: 'Cancel' });
|
|
82
|
+
this.gotItButton = page.getByRole('button', { name: 'Got it' });
|
|
81
83
|
this.row = (name) => this.page.getByRole('row').filter({ hasText: name }).first();
|
|
82
84
|
}
|
|
83
85
|
async clickCreateTenantMainButton() {
|
|
@@ -151,22 +153,26 @@ class OCTenantPage {
|
|
|
151
153
|
}
|
|
152
154
|
async assertTenantCreated() {
|
|
153
155
|
try {
|
|
154
|
-
await (0, test_1.expect)(this.page.getByText('
|
|
156
|
+
await (0, test_1.expect)(this.page.getByText('successfully created')).toBeVisible({
|
|
155
157
|
timeout: 8000,
|
|
156
158
|
});
|
|
159
|
+
await this.clickGotItButton();
|
|
157
160
|
}
|
|
158
161
|
catch (error) {
|
|
159
162
|
if (await this.page.getByText('ALREADY_EXISTS').first().isVisible()) {
|
|
160
163
|
await this.clickCancelButton();
|
|
161
164
|
}
|
|
162
165
|
else {
|
|
163
|
-
throw new Error('
|
|
166
|
+
throw new Error('Creating tenant failed' + error);
|
|
164
167
|
}
|
|
165
168
|
}
|
|
166
169
|
}
|
|
167
170
|
async clickCancelButton() {
|
|
168
171
|
await this.cancelButton.click({ timeout: 30000 });
|
|
169
172
|
}
|
|
173
|
+
async clickGotItButton() {
|
|
174
|
+
await this.gotItButton.click({ timeout: 30000 });
|
|
175
|
+
}
|
|
170
176
|
async clickTenant(tenantName) {
|
|
171
177
|
const maxRetries = 10;
|
|
172
178
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
@@ -129,7 +129,8 @@ _8_9_1.test.describe('User Roles User Flow', () => {
|
|
|
129
129
|
await modelerCreatePage.clickCloseButton();
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
|
-
|
|
132
|
+
//Skipped due to bug 46344: https://github.com/camunda/camunda/issues/46344
|
|
133
|
+
_8_9_1.test.skip('Analyst Role User Flow', async ({ page, modelerHomePage, appsPage, homePage, clusterPage, clusterDetailsPage, browser, consoleOrganizationsPage, settingsPage, operateHomePage, ocIdentityHomePage, taskPanelPage, optimizeHomePage, modelerCreatePage, }) => {
|
|
133
134
|
_8_9_1.test.slow();
|
|
134
135
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
135
136
|
const processName = 'User Roles User Flow' + randomString;
|
|
@@ -220,7 +221,8 @@ _8_9_1.test.describe('User Roles User Flow', () => {
|
|
|
220
221
|
await modelerCreatePage.clickCloseButton();
|
|
221
222
|
});
|
|
222
223
|
});
|
|
223
|
-
|
|
224
|
+
//Skipped due to bug 46344: https://github.com/camunda/camunda/issues/46344
|
|
225
|
+
_8_9_1.test.skip('Admin Role User Flow', async ({ page, modelerHomePage, appsPage, homePage, clusterPage, clusterDetailsPage, browser, consoleOrganizationsPage, settingsPage, operateHomePage, ocIdentityHomePage, taskPanelPage, optimizeHomePage, modelerCreatePage, }) => {
|
|
224
226
|
_8_9_1.test.slow();
|
|
225
227
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
226
228
|
const processName = 'User Roles User Flow' + randomString;
|
|
@@ -25,7 +25,8 @@ _8_9_1.test.describe('Optimize User Flow Tests', () => {
|
|
|
25
25
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
26
26
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
//Skipped due to bug 46344: https://github.com/camunda/camunda/issues/46344
|
|
29
|
+
_8_9_1.test.skip('Job Worker User Task User Flow @tasklistV1', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, }) => {
|
|
29
30
|
_8_9_1.test.slow();
|
|
30
31
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
31
32
|
const processName = 'Optimize Job Worker User Task Diagram' + reportName;
|
|
@@ -125,7 +126,8 @@ _8_9_1.test.describe('Optimize User Flow Tests', () => {
|
|
|
125
126
|
await (0, test_1.expect)(newOptimizeTabOptimizeReportPage.oneUserTaskInstance).not.toBeVisible();
|
|
126
127
|
});
|
|
127
128
|
});
|
|
128
|
-
|
|
129
|
+
//Skipped due to bug 46344: https://github.com/camunda/camunda/issues/46344
|
|
130
|
+
_8_9_1.test.skip('New Instances Updated Flow @tasklistV1', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, optimizeCollectionsPage, optimizeReportPage, optimizeHomePage, }) => {
|
|
129
131
|
_8_9_1.test.slow();
|
|
130
132
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
131
133
|
const processName = 'Optimize Job Worker New Instances Updated Flow' + reportName;
|
|
@@ -207,7 +209,8 @@ _8_9_1.test.describe('Optimize User Flow Tests', () => {
|
|
|
207
209
|
await (0, test_1.expect)(newOperateTab.getByText('Displaying data from 1 instance.')).toBeVisible({ timeout: 90000 });
|
|
208
210
|
});
|
|
209
211
|
});
|
|
210
|
-
|
|
212
|
+
//Skipped due to bug 46344: https://github.com/camunda/camunda/issues/46344
|
|
213
|
+
_8_9_1.test.skip('Process Import Flow @tasklistV1', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, }) => {
|
|
211
214
|
_8_9_1.test.slow();
|
|
212
215
|
const processName = 'Process Import Flow' + (await (0, _setup_1.generateRandomStringAsync)(6));
|
|
213
216
|
await _8_9_1.test.step('Navigate to Web Modeler', async () => {
|