@camunda/e2e-test-suite 0.0.1008 → 0.0.1009
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.
|
@@ -827,6 +827,10 @@ class ModelerCreatePage {
|
|
|
827
827
|
// Design System editor has none: renaming moved to the breadcrumb's "More
|
|
828
828
|
// actions" > "Rename" dialog. Use whichever the deployed shell offers.
|
|
829
829
|
async enterDiagramName(name) {
|
|
830
|
+
// Same hazard as ModelerHomePage.enterFormName: the project page also has a
|
|
831
|
+
// "More actions" button, so the or() gate can be satisfied before the
|
|
832
|
+
// editor has loaded and the rename would target the project.
|
|
833
|
+
await this.page.waitForURL(/\/diagrams\//, { timeout: 60000 });
|
|
830
834
|
await this.diagramNameInput
|
|
831
835
|
.or(this.moreActionsButton)
|
|
832
836
|
.first()
|
|
@@ -286,6 +286,13 @@ class ModelerHomePage {
|
|
|
286
286
|
// no inline editable input and renames through the breadcrumb's "More
|
|
287
287
|
// actions" > "Rename" dialog.
|
|
288
288
|
async enterFormName(name) {
|
|
289
|
+
// Wait for the form editor itself before probing rename affordances. The
|
|
290
|
+
// project page also renders a "More actions" button, so the or() gate below
|
|
291
|
+
// is satisfied while the caller's navigation is still in flight -- which
|
|
292
|
+
// renamed the PROJECT to the form's name instead of the form. The Carbon
|
|
293
|
+
// shell could not hit this: editable-input existed only inside the editor,
|
|
294
|
+
// so the gate implicitly waited for navigation.
|
|
295
|
+
await this.page.waitForURL(/\/forms\//, { timeout: 60000 });
|
|
289
296
|
await this.formNameInput
|
|
290
297
|
.or(this.moreActionsButton)
|
|
291
298
|
.first()
|