@camunda/e2e-test-suite 0.0.962 → 0.0.963
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.
|
@@ -107,12 +107,24 @@ class OperateHomePage {
|
|
|
107
107
|
}
|
|
108
108
|
async fillVariableValueInput(newValue) {
|
|
109
109
|
await this.openButton.click();
|
|
110
|
-
|
|
110
|
+
const editor = this.page
|
|
111
111
|
.getByLabel('Edit Variable "testVariable"')
|
|
112
|
-
.
|
|
113
|
-
|
|
112
|
+
.getByRole('code');
|
|
113
|
+
await (0, test_1.expect)(editor).toBeVisible({ timeout: 30000 });
|
|
114
|
+
await editor.click();
|
|
115
|
+
// The JSON editor re-syncs its document from the React value prop on a
|
|
116
|
+
// debounce, which parks the caret at the end of the line. keyboard.type()
|
|
117
|
+
// spends one keystroke per character, so that re-sync lands mid-word and
|
|
118
|
+
// the tail is typed past the closing quote — the nightly recorded
|
|
119
|
+
// `"updatedV"alue` and the local reproduce `"upd"edale`, invalid JSON that
|
|
120
|
+
// Apply refuses, leaving the modal open on the old value. Select-all then
|
|
121
|
+
// insertText commits the whole value in a single input event, so no
|
|
122
|
+
// re-sync can interleave.
|
|
123
|
+
await this.page.keyboard.press('Control+A');
|
|
114
124
|
await this.page.keyboard.press('Backspace');
|
|
115
|
-
|
|
125
|
+
const jsonValue = JSON.stringify(newValue);
|
|
126
|
+
await this.page.keyboard.insertText(jsonValue);
|
|
127
|
+
await (0, test_1.expect)(editor).toContainText(jsonValue, { timeout: 10000 });
|
|
116
128
|
}
|
|
117
129
|
async clickSaveVariableButton() {
|
|
118
130
|
await this.applyButton.click();
|