@camunda/e2e-test-suite 0.0.965 → 0.0.966
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.
- package/dist/pages/SM-8.10/PlayPage.js +15 -10
- package/package.json +1 -1
|
@@ -251,16 +251,21 @@ class PlayPage {
|
|
|
251
251
|
await (0, test_1.expect)(this.scenarioSavedToast).toBeVisible({ timeout: 30000 });
|
|
252
252
|
}
|
|
253
253
|
async assertSavedScenarioNameInPanel(scenarioName) {
|
|
254
|
-
//
|
|
255
|
-
//
|
|
256
|
-
//
|
|
257
|
-
//
|
|
258
|
-
//
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
254
|
+
// A successful save tears the detail view down: use-test-case-editor.ts
|
|
255
|
+
// saveTest() calls resetForm() + testCasesStore.resetTestCaseDetail(),
|
|
256
|
+
// which clears selectedTestCase and stops recording, so the store's
|
|
257
|
+
// isTestCaseDetailVisible turns false and the panel falls back to the
|
|
258
|
+
// saved test-case list. The name therefore lands on one of three
|
|
259
|
+
// surfaces: a list row, the read-only TestName heading, or (pre-reset
|
|
260
|
+
// hub builds) the still-editable Name field.
|
|
261
|
+
const savedName = this.getScenarioRow(scenarioName)
|
|
262
|
+
.or(this.page.getByRole('heading', { name: scenarioName, exact: true }))
|
|
263
|
+
.first();
|
|
264
|
+
const onListOrHeading = await savedName
|
|
265
|
+
.waitFor({ state: 'visible', timeout: 30000 })
|
|
266
|
+
.then(() => true)
|
|
267
|
+
.catch(() => false);
|
|
268
|
+
if (onListOrHeading) {
|
|
264
269
|
return;
|
|
265
270
|
}
|
|
266
271
|
// Updating an existing test case does NOT always leave the detail view
|