@camunda/e2e-test-suite 0.0.1585 → 0.0.1587

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.
@@ -297,7 +297,26 @@ class ClusterDetailsPage {
297
297
  await this.createButton.click({ timeout: 60000 });
298
298
  }
299
299
  async clickCloseModalButton() {
300
- await this.closeModalButton.click({ timeout: 60000 });
300
+ // The client-credentials modal renders its Close (X) affix in the top-right
301
+ // corner -- the same corner the app's sonner notification toasts occupy. On
302
+ // SaaS INT a background info toast lands on top of that affix and intercepts
303
+ // every click on it for the full timeout, even though the button is visible,
304
+ // enabled and stable (the nightly trace shows
305
+ // `<li data-sonner-toast> ... subtree intercepts pointer events`). Escape
306
+ // dismisses this modal Radix dialog without routing a click through the
307
+ // obstructed corner; fall back to the button if this dialog ever suppresses
308
+ // Escape, then assert the dialog is gone so a close that genuinely failed
309
+ // still surfaces rather than being masked.
310
+ await (0, test_1.expect)(this.clientCredentialsDialog).toBeVisible({ timeout: 60000 });
311
+ await this.page.keyboard.press('Escape');
312
+ const dismissed = await this.clientCredentialsDialog
313
+ .waitFor({ state: 'hidden', timeout: 5000 })
314
+ .then(() => true)
315
+ .catch(() => false);
316
+ if (!dismissed) {
317
+ await this.closeModalButton.click({ timeout: 60000 });
318
+ }
319
+ await (0, test_1.expect)(this.clientCredentialsDialog).toBeHidden({ timeout: 30000 });
301
320
  }
302
321
  async clickSettingsTab() {
303
322
  await this.settingsTab.click({ timeout: 60000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1585",
3
+ "version": "0.0.1587",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",