@camunda/e2e-test-suite 0.0.799 → 0.0.801
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.
|
@@ -457,8 +457,13 @@ class ModelerCreatePage {
|
|
|
457
457
|
await this.userTaskOption.click();
|
|
458
458
|
}
|
|
459
459
|
async clickForm(name) {
|
|
460
|
+
// Baseline upgrade runs use fixed form names, so a Playwright retry re-creates
|
|
461
|
+
// a form with the same name and the picker then lists two identical entries.
|
|
462
|
+
// Scope to the first matching item so the link step stays deterministic on retry
|
|
463
|
+
// instead of failing with a strict-mode violation.
|
|
460
464
|
await this.page
|
|
461
465
|
.locator(`[data-test="item-${name}"]`)
|
|
466
|
+
.first()
|
|
462
467
|
.getByText(name)
|
|
463
468
|
.click({ timeout: 90000 });
|
|
464
469
|
}
|
|
@@ -456,8 +456,13 @@ class ModelerCreatePage {
|
|
|
456
456
|
await this.userTaskOption.click();
|
|
457
457
|
}
|
|
458
458
|
async clickForm(name) {
|
|
459
|
+
// Baseline upgrade runs use fixed form names, so a Playwright retry re-creates
|
|
460
|
+
// a form with the same name and the picker then lists two identical entries.
|
|
461
|
+
// Scope to the first matching item so the link step stays deterministic on retry
|
|
462
|
+
// instead of failing with a strict-mode violation.
|
|
459
463
|
await this.page
|
|
460
464
|
.locator(`[data-test="item-${name}"]`)
|
|
465
|
+
.first()
|
|
461
466
|
.getByText(name)
|
|
462
467
|
.click({ timeout: 90000 });
|
|
463
468
|
}
|
|
@@ -183,9 +183,13 @@ class ModelerCreatePage {
|
|
|
183
183
|
this.secondPlacedElement = page.locator('g:nth-child(2) > .djs-element > .djs-hit');
|
|
184
184
|
this.payloadInput = page.locator('[class="fjs-input"]');
|
|
185
185
|
this.marketPlaceButton = page.getByTitle('Browse Marketplace for more Connectors');
|
|
186
|
+
// Match either marketplace display name — the connector was renamed from
|
|
187
|
+
// "Public Holiday Outbound" to "Worldwide Public Holiday"; accepting both
|
|
188
|
+
// keeps the flow green whichever the marketplace currently serves.
|
|
186
189
|
this.publicHolidayConnectorOption = page
|
|
187
190
|
.locator('[data-test="modeler"]')
|
|
188
|
-
.getByText(
|
|
191
|
+
.getByText(/Worldwide Public Holiday|Public Holiday Outbound/)
|
|
192
|
+
.first();
|
|
189
193
|
this.publicHolidayYearOption = page.getByLabel('Year');
|
|
190
194
|
this.publicHolidayCountryCodeOption = page.getByLabel('Countrycode');
|
|
191
195
|
this.implementationSection = page.locator('[data-group-id="group-userTaskImplementation"]');
|
|
@@ -454,8 +458,13 @@ class ModelerCreatePage {
|
|
|
454
458
|
await this.userTaskOption.click();
|
|
455
459
|
}
|
|
456
460
|
async clickForm(name) {
|
|
461
|
+
// Baseline upgrade runs use fixed form names, so a Playwright retry re-creates
|
|
462
|
+
// a form with the same name and the picker then lists two identical entries.
|
|
463
|
+
// Scope to the first matching item so the link step stays deterministic on retry
|
|
464
|
+
// instead of failing with a strict-mode violation.
|
|
457
465
|
await this.page
|
|
458
466
|
.locator(`[data-test="item-${name}"]`)
|
|
467
|
+
.first()
|
|
459
468
|
.getByText(name)
|
|
460
469
|
.click({ timeout: 90000 });
|
|
461
470
|
}
|
|
@@ -781,12 +790,35 @@ class ModelerCreatePage {
|
|
|
781
790
|
await this.secondElement.click({ timeout: 60000 });
|
|
782
791
|
await this.clickChangeTypeButton();
|
|
783
792
|
await (0, test_1.expect)(this.marketPlaceButton).toBeVisible({ timeout: 60000 });
|
|
784
|
-
// Filter the virtualized change-element popup so the option scrolls
|
|
793
|
+
// Filter the virtualized change-element popup so the option scrolls
|
|
794
|
+
// into view. Search by each full connector name (the marketplace
|
|
795
|
+
// renamed it "Public Holiday Outbound" -> "Worldwide Public Holiday"),
|
|
796
|
+
// not the shared "Public Holiday" substring — a generic term could
|
|
797
|
+
// surface a different Public Holiday connector we must not select.
|
|
798
|
+
const connectorNames = [
|
|
799
|
+
'Worldwide Public Holiday',
|
|
800
|
+
'Public Holiday Outbound',
|
|
801
|
+
];
|
|
785
802
|
const changeElementSearch = this.page.locator('.djs-popup-search input');
|
|
786
|
-
|
|
787
|
-
.
|
|
788
|
-
.
|
|
789
|
-
|
|
803
|
+
const searchVisible = await changeElementSearch
|
|
804
|
+
.waitFor({ state: 'visible', timeout: 5000 })
|
|
805
|
+
.then(() => true)
|
|
806
|
+
.catch(() => false);
|
|
807
|
+
if (searchVisible) {
|
|
808
|
+
for (const name of connectorNames) {
|
|
809
|
+
await changeElementSearch.fill('');
|
|
810
|
+
await changeElementSearch.pressSequentially(name, { delay: 50 });
|
|
811
|
+
// waitFor actually blocks up to the timeout; isVisible() would
|
|
812
|
+
// return immediately and miss the option still rendering after
|
|
813
|
+
// the search filter applies.
|
|
814
|
+
const optionVisible = await this.publicHolidayConnectorOption
|
|
815
|
+
.waitFor({ state: 'visible', timeout: 5000 })
|
|
816
|
+
.then(() => true)
|
|
817
|
+
.catch(() => false);
|
|
818
|
+
if (optionVisible) {
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
790
822
|
}
|
|
791
823
|
await this.publicHolidayConnectorOption.waitFor({
|
|
792
824
|
state: 'visible',
|
|
@@ -50,15 +50,15 @@ class OCIdentityClusterVariablesPage {
|
|
|
50
50
|
await this.editMenuItem.click();
|
|
51
51
|
await (0, test_1.expect)(this.variableValueField).toBeVisible();
|
|
52
52
|
await (0, test_1.expect)(this.monacoEditor).toBeVisible();
|
|
53
|
+
// Monaco's hidden <textarea> only forwards keyboard events to the
|
|
54
|
+
// editor model — `fill()` writes the value but doesn't trigger
|
|
55
|
+
// Monaco's onDidChangeContent, so the modal's JSON validator never
|
|
56
|
+
// re-runs and Save stays disabled. Use real keyboard input instead.
|
|
53
57
|
await this.monacoEditor.click();
|
|
54
|
-
await this.
|
|
55
|
-
await this.
|
|
56
|
-
await this.
|
|
57
|
-
await test_1.expect
|
|
58
|
-
.poll(async () => await this.saveVariableButton.isEnabled(), {
|
|
59
|
-
timeout: 30000,
|
|
60
|
-
})
|
|
61
|
-
.toBe(true);
|
|
58
|
+
await this.page.keyboard.press('ControlOrMeta+A');
|
|
59
|
+
await this.page.keyboard.press('Delete');
|
|
60
|
+
await this.page.keyboard.type(newValue);
|
|
61
|
+
await (0, test_1.expect)(this.saveVariableButton).toBeEnabled();
|
|
62
62
|
await this.saveVariableButton.click();
|
|
63
63
|
await (0, test_1.expect)(this.successMessage).toBeVisible();
|
|
64
64
|
await (0, test_1.expect)(this.editVariableModal).toBeHidden();
|