@camunda/e2e-test-suite 0.0.584 → 0.0.586
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.
|
@@ -177,6 +177,21 @@ class ModelerHomePage {
|
|
|
177
177
|
totalTimeout: 180000,
|
|
178
178
|
maxRetries: 5,
|
|
179
179
|
preAction: async () => {
|
|
180
|
+
// A Carbon modal (`.cds--modal.is-visible`) sometimes covers the
|
|
181
|
+
// project folder and intercepts pointer events; clickMessageBanner
|
|
182
|
+
// only handles a single banner/close button so it doesn't dismiss
|
|
183
|
+
// the modal. Escape it explicitly first — same pattern 8.7 already
|
|
184
|
+
// uses for the same symptom.
|
|
185
|
+
try {
|
|
186
|
+
const blockingModal = this.page.locator('.cds--modal.is-visible');
|
|
187
|
+
if ((await blockingModal.count()) > 0) {
|
|
188
|
+
await this.page.keyboard.press('Escape');
|
|
189
|
+
await (0, sleep_1.sleep)(1000);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
// No blocking modal to dismiss
|
|
194
|
+
}
|
|
180
195
|
await this.clickMessageBanner();
|
|
181
196
|
},
|
|
182
197
|
postAction: async () => {
|
|
@@ -125,6 +125,21 @@ class ModelerHomePage {
|
|
|
125
125
|
totalTimeout: 180000,
|
|
126
126
|
maxRetries: 5,
|
|
127
127
|
preAction: async () => {
|
|
128
|
+
// A Carbon modal (`.cds--modal.is-visible`) sometimes covers the
|
|
129
|
+
// project folder and intercepts pointer events; clickMessageBanner
|
|
130
|
+
// only handles a single banner/close button so it doesn't dismiss
|
|
131
|
+
// the modal. Escape it explicitly first — same pattern 8.7 already
|
|
132
|
+
// uses for the same symptom.
|
|
133
|
+
try {
|
|
134
|
+
const blockingModal = this.page.locator('.cds--modal.is-visible');
|
|
135
|
+
if ((await blockingModal.count()) > 0) {
|
|
136
|
+
await this.page.keyboard.press('Escape');
|
|
137
|
+
await (0, sleep_1.sleep)(1000);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
catch {
|
|
141
|
+
// No blocking modal to dismiss
|
|
142
|
+
}
|
|
128
143
|
await this.clickMessageBanner();
|
|
129
144
|
},
|
|
130
145
|
postAction: async () => {
|
|
@@ -180,6 +180,21 @@ class ModelerHomePage {
|
|
|
180
180
|
totalTimeout: 180000,
|
|
181
181
|
maxRetries: 5,
|
|
182
182
|
preAction: async () => {
|
|
183
|
+
// A Carbon modal (`.cds--modal.is-visible`) sometimes covers the
|
|
184
|
+
// project folder and intercepts pointer events; clickMessageBanner
|
|
185
|
+
// only handles a single banner/close button so it doesn't dismiss
|
|
186
|
+
// the modal. Escape it explicitly first — same pattern 8.7 already
|
|
187
|
+
// uses for the same symptom.
|
|
188
|
+
try {
|
|
189
|
+
const blockingModal = this.page.locator('.cds--modal.is-visible');
|
|
190
|
+
if ((await blockingModal.count()) > 0) {
|
|
191
|
+
await this.page.keyboard.press('Escape');
|
|
192
|
+
await (0, sleep_1.sleep)(1000);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
catch {
|
|
196
|
+
// No blocking modal to dismiss
|
|
197
|
+
}
|
|
183
198
|
await this.clickMessageBanner();
|
|
184
199
|
},
|
|
185
200
|
postAction: async () => {
|
|
@@ -46,7 +46,12 @@ class TaskPanelPage {
|
|
|
46
46
|
throw error;
|
|
47
47
|
}
|
|
48
48
|
await this.page.reload();
|
|
49
|
-
|
|
49
|
+
// Tasklist polls continuously for new tasks, so `networkidle` never
|
|
50
|
+
// fires and the wait times out at 60s — burning the retry budget
|
|
51
|
+
// without ever re-attempting the task click. `domcontentloaded`
|
|
52
|
+
// resolves once the reloaded HTML has parsed, which is the actual
|
|
53
|
+
// signal we need before trying to find the task again.
|
|
54
|
+
await this.page.waitForLoadState('domcontentloaded', { timeout: 60000 });
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
}
|
|
@@ -177,6 +177,21 @@ class ModelerHomePage {
|
|
|
177
177
|
totalTimeout: 180000,
|
|
178
178
|
maxRetries: 5,
|
|
179
179
|
preAction: async () => {
|
|
180
|
+
// A Carbon modal (`.cds--modal.is-visible`) sometimes covers the
|
|
181
|
+
// project folder and intercepts pointer events; clickMessageBanner
|
|
182
|
+
// only handles a single banner/close button so it doesn't dismiss
|
|
183
|
+
// the modal. Escape it explicitly first — same pattern 8.7 already
|
|
184
|
+
// uses for the same symptom.
|
|
185
|
+
try {
|
|
186
|
+
const blockingModal = this.page.locator('.cds--modal.is-visible');
|
|
187
|
+
if ((await blockingModal.count()) > 0) {
|
|
188
|
+
await this.page.keyboard.press('Escape');
|
|
189
|
+
await (0, sleep_1.sleep)(1000);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
// No blocking modal to dismiss
|
|
194
|
+
}
|
|
180
195
|
await this.clickMessageBanner();
|
|
181
196
|
},
|
|
182
197
|
postAction: async () => {
|