@camunda/e2e-test-suite 0.0.1240 → 0.0.1241
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.
|
@@ -275,9 +275,19 @@ class NavigationPage {
|
|
|
275
275
|
// resolve; only unambiguous dismissals are matched (never "Cancel", which is a
|
|
276
276
|
// form action on the dialogs other flows open on purpose).
|
|
277
277
|
async dismissOnboardingDialog() {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
278
|
+
// On the Design System shell the onboarding is a multi-step wizard: its
|
|
279
|
+
// footer button reads "Next" (an advance, not a dismissal) and its only
|
|
280
|
+
// single-click close is the header control -- a ghost icon button
|
|
281
|
+
// (data-slot="dialog-close") wrapping an aria-hidden "x" svg, so it exposes
|
|
282
|
+
// no accessible name and getByRole({name}) cannot reach it. Target that
|
|
283
|
+
// control by its stable data-slot; keep the named-button fallback for the
|
|
284
|
+
// Carbon announcement modals other flows meet ("Got it"/"Close"/"Dismiss",
|
|
285
|
+
// never "Cancel", which is a form action). Scope to the visible dialog: the
|
|
286
|
+
// home keeps several hidden role="dialog" containers mounted.
|
|
287
|
+
const dialog = this.page.locator('[role="dialog"]:visible').first();
|
|
288
|
+
const dismiss = dialog
|
|
289
|
+
.locator('[data-slot="dialog-close"]')
|
|
290
|
+
.or(dialog.getByRole('button', { name: /^(Got it|Close|Dismiss)/i }))
|
|
281
291
|
.first();
|
|
282
292
|
await dismiss
|
|
283
293
|
.waitFor({ state: 'visible', timeout: 3000 })
|