@camunda/e2e-test-suite 0.0.976 → 0.0.978

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.
@@ -193,10 +193,8 @@ class ModelerHomePage {
193
193
  maxRetries: 5,
194
194
  preAction: async () => {
195
195
  // A Carbon modal (`.cds--modal.is-visible`) sometimes covers the
196
- // project folder and intercepts pointer events; clickMessageBanner
197
- // only handles a single banner/close button so it doesn't dismiss
198
- // the modal. Escape it explicitly first — same pattern 8.7 already
199
- // uses for the same symptom.
196
+ // project folder and intercepts pointer events. Escape it explicitly
197
+ // first — same pattern 8.7 already uses for the same symptom.
200
198
  try {
201
199
  const blockingModal = this.page.locator('.cds--modal.is-visible');
202
200
  if ((await blockingModal.count()) > 0) {
@@ -207,7 +205,11 @@ class ModelerHomePage {
207
205
  catch {
208
206
  // No blocking modal to dismiss
209
207
  }
210
- await this.clickMessageBanner();
208
+ // dismissOverlays, not clickMessageBanner: the latter resolves
209
+ // `messageBanner.or(closeButton).first()`, so with a top banner on
210
+ // screen it always picks the banner and leaves any dialog in place.
211
+ // dismissOverlays walks every overlay control in turn instead.
212
+ await this.dismissOverlays();
211
213
  },
212
214
  postAction: async () => {
213
215
  await this.page.reload();
@@ -13,7 +13,15 @@ class OperateHomePage {
13
13
  editVariableSpinner;
14
14
  constructor(page) {
15
15
  this.page = page;
16
- this.operateBanner = page.getByRole('link', { name: 'Camunda logo Operate' });
16
+ // Operate renders the Design System header (AppHeaderV2) whenever the
17
+ // `navV2Enabled` client config is on -- its home link is
18
+ // aria-label="Camunda Operate" instead of the legacy shell's
19
+ // "Camunda logo Operate" text. Match either so the banner resolves with
20
+ // the flag on or off.
21
+ this.operateBanner = page
22
+ .getByRole('link', { name: 'Camunda logo Operate' })
23
+ .or(page.getByRole('link', { name: 'Camunda Operate', exact: true }))
24
+ .first();
17
25
  this.processesTab = page.getByRole('link', { name: 'Processes' });
18
26
  this.informationDialog = page.getByRole('button', {
19
27
  name: 'Close this dialog',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.976",
3
+ "version": "0.0.978",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",