@camunda/e2e-test-suite 0.0.1745 → 0.0.1746
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.
|
@@ -136,6 +136,7 @@ declare class ModelerCreatePage {
|
|
|
136
136
|
deployDiagram(clusterName: string): Promise<void>;
|
|
137
137
|
clickDeployButton(): Promise<void>;
|
|
138
138
|
clickDeployAndRunMainButton(): Promise<void>;
|
|
139
|
+
bindDeployCluster(clusterName: string): Promise<void>;
|
|
139
140
|
clickDeployAndRunSubButton(): Promise<void>;
|
|
140
141
|
runProcessInstance(clusterName: string, variables?: string, formVariables?: {
|
|
141
142
|
[key: string]: string;
|
|
@@ -752,6 +752,12 @@ class ModelerCreatePage {
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
+
// Binds the cluster to the current process application's deploy targets, so
|
|
756
|
+
// a later runProcessInstance by a user who may not assign environments
|
|
757
|
+
// (Hub allows only Owner/Admin/DevOps) finds it already bound.
|
|
758
|
+
async bindDeployCluster(clusterName) {
|
|
759
|
+
await this.processApplicationPage.ensureStageCluster(clusterName);
|
|
760
|
+
}
|
|
755
761
|
async clickDeployAndRunSubButton() {
|
|
756
762
|
await this.deployAndRunSubButton.click({ timeout: 30000 });
|
|
757
763
|
}
|
|
@@ -353,7 +353,10 @@ class ModelerHomePage {
|
|
|
353
353
|
await this.page.waitForTimeout(3000);
|
|
354
354
|
await this.bpmnTemplateOption.click({ force: true, timeout: 60000 });
|
|
355
355
|
}
|
|
356
|
-
|
|
356
|
+
// Hub only syncs the BPMN process name on rename while it is still this
|
|
357
|
+
// default, and pre-fills an empty project's first diagram with the
|
|
358
|
+
// project name instead, which Operate/Tasklist/Optimize would then show.
|
|
359
|
+
await this.confirmNewEntityNameDialog('New BPMN diagram');
|
|
357
360
|
}
|
|
358
361
|
async clickIdpApplicationTemplateOption() {
|
|
359
362
|
await this.idpTemplateOption.click({ timeout: 120000 });
|
|
@@ -363,12 +366,17 @@ class ModelerHomePage {
|
|
|
363
366
|
await this.confirmNewEntityNameDialog();
|
|
364
367
|
}
|
|
365
368
|
// Hub asks for a name before creating a file (camunda-hub #31596). Callers
|
|
366
|
-
// rename the file afterwards
|
|
367
|
-
async confirmNewEntityNameDialog() {
|
|
369
|
+
// rename the file afterwards.
|
|
370
|
+
async confirmNewEntityNameDialog(name) {
|
|
368
371
|
const submit = this.page.locator('[data-test="new-entity-name-submit"]');
|
|
369
372
|
if (!(await this.becameVisible(submit, 15000))) {
|
|
370
373
|
return;
|
|
371
374
|
}
|
|
375
|
+
if (name) {
|
|
376
|
+
const input = this.page.locator('[data-test="new-entity-name-input"]');
|
|
377
|
+
await input.fill(name, { timeout: 30000 });
|
|
378
|
+
await (0, test_1.expect)(input).toHaveValue(name);
|
|
379
|
+
}
|
|
372
380
|
await submit.click({ timeout: 30000 });
|
|
373
381
|
await (0, test_1.expect)(submit).toBeHidden({ timeout: 60000 });
|
|
374
382
|
}
|
|
@@ -223,6 +223,7 @@ _8_7_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
223
223
|
await (0, test_1.expect)(page.getByText('Updating...')).not.toBeVisible({
|
|
224
224
|
timeout: 90000,
|
|
225
225
|
});
|
|
226
|
+
await modelerCreatePage.bindDeployCluster(clusterName);
|
|
226
227
|
await (0, test_1.expect)(settingsPage.openSettingsButton).toBeVisible({
|
|
227
228
|
timeout: 120000,
|
|
228
229
|
});
|