@camunda/e2e-test-suite 0.0.1318 → 0.0.1319
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/8.10/ModelerHomePage.js +14 -2
- package/dist/pages/8.10/ProcessApplicationPage.js +12 -8
- package/dist/pages/8.8/AppsPage.js +4 -1
- package/dist/pages/8.8/ModelerHomePage.js +14 -1
- package/dist/pages/8.8/ProcessApplicationPage.js +6 -4
- package/dist/pages/SM-8.10/ModelerHomePage.js +14 -1
- package/package.json +1 -1
|
@@ -182,9 +182,13 @@ class ModelerHomePage {
|
|
|
182
182
|
// strict-mode violation the moment a duplicate exists, which fails every
|
|
183
183
|
// later run in that org rather than just the run that created it.
|
|
184
184
|
// On the Camunda Hub Workspaces overview the folder is a workspace tile
|
|
185
|
-
// whose "Open workspace <name>" button navigates into it
|
|
185
|
+
// whose "Open workspace <name>" button navigates into it; a list-view row
|
|
186
|
+
// opens it through a link of the same name.
|
|
186
187
|
this.crossComponentProjectFolder = page
|
|
187
188
|
.getByRole('button', { name: `Open workspace ${this.defaultFolderName}` })
|
|
189
|
+
.or(page.getByRole('link', {
|
|
190
|
+
name: `Open workspace ${this.defaultFolderName}`,
|
|
191
|
+
}))
|
|
188
192
|
.or(page.getByTitle(this.defaultFolderName, {
|
|
189
193
|
exact: true,
|
|
190
194
|
}))
|
|
@@ -402,7 +406,15 @@ class ModelerHomePage {
|
|
|
402
406
|
// resource is one level down, so re-enter the container first.
|
|
403
407
|
async clickProcessDiagram(name) {
|
|
404
408
|
await this.ensureInResourceContainer();
|
|
405
|
-
|
|
409
|
+
// A Design System table row opens through a link laid over the row, which
|
|
410
|
+
// sits on top of the title text and takes its clicks -- so click the link.
|
|
411
|
+
// The link comes before the title in DOM order, so `first()` picks it
|
|
412
|
+
// whenever it exists; the title stays as the fallback for the classic table.
|
|
413
|
+
const row = this.rows.filter({ hasText: name });
|
|
414
|
+
const process = row
|
|
415
|
+
.getByRole('link', { name })
|
|
416
|
+
.or(row.getByTitle(name))
|
|
417
|
+
.first();
|
|
406
418
|
await (0, test_1.expect)(process).toBeVisible({ timeout: 90000 });
|
|
407
419
|
await process.click();
|
|
408
420
|
}
|
|
@@ -460,10 +460,12 @@ class ProcessApplicationPage {
|
|
|
460
460
|
// creation that did land but rendered slowly is re-entered instead of being
|
|
461
461
|
// duplicated by the next attempt.
|
|
462
462
|
async openByNameIfPresent(name, timeout = 15000) {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
463
|
+
// Link first: a Design System row link lies over the title and takes its
|
|
464
|
+
// clicks (see ModelerHomePage.clickProcessDiagram).
|
|
465
|
+
const row = this.page.getByRole('row').filter({ hasText: name });
|
|
466
|
+
const processApplication = row
|
|
467
|
+
.getByRole('link', { name })
|
|
468
|
+
.or(row.getByTitle(name))
|
|
467
469
|
.first();
|
|
468
470
|
const present = await processApplication
|
|
469
471
|
.waitFor({ state: 'visible', timeout })
|
|
@@ -479,10 +481,12 @@ class ProcessApplicationPage {
|
|
|
479
481
|
.catch(() => false);
|
|
480
482
|
}
|
|
481
483
|
async openByName(name) {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
// Link first: a Design System row link lies over the title and takes its
|
|
485
|
+
// clicks (see ModelerHomePage.clickProcessDiagram).
|
|
486
|
+
const row = this.page.getByRole('row').filter({ hasText: name });
|
|
487
|
+
const processApplication = row
|
|
488
|
+
.getByRole('link', { name })
|
|
489
|
+
.or(row.getByTitle(name))
|
|
486
490
|
.first();
|
|
487
491
|
await (0, test_1.expect)(processApplication).toBeVisible({ timeout: 90000 });
|
|
488
492
|
await processApplication.click({ timeout: 60000 });
|
|
@@ -99,8 +99,11 @@ class AppsPage {
|
|
|
99
99
|
// that doesn't reliably exist. Ported from pages/8.9/AppsPage.ts, where
|
|
100
100
|
// this shape is already nightly-proven.
|
|
101
101
|
async expandHubClusterGroup(clusterName) {
|
|
102
|
+
// Anchored at the start: a plain substring match also hits "UI Test
|
|
103
|
+
// Cluster", which this suite creates too and which can precede "Test
|
|
104
|
+
// Cluster" in the sidebar.
|
|
102
105
|
const toggle = this.hubSidebar
|
|
103
|
-
.getByRole('button', { name: clusterName })
|
|
106
|
+
.getByRole('button', { name: new RegExp(`^${escapeRegExp(clusterName)}`) })
|
|
104
107
|
.first();
|
|
105
108
|
// The diagram editor (and other full-screen views reached from it, e.g.
|
|
106
109
|
// right after runProcessInstance/deployDiagram) has no "Main navigation"
|
|
@@ -193,8 +193,13 @@ class ModelerHomePage {
|
|
|
193
193
|
this.manageButton = page.getByRole('menuitem', { name: 'Manage' });
|
|
194
194
|
// On the Camunda Hub Workspaces overview the folder is a workspace tile
|
|
195
195
|
// whose "Open workspace <name>" button navigates into it.
|
|
196
|
+
// A grid tile opens the workspace through a button, a list-view row
|
|
197
|
+
// through a link.
|
|
196
198
|
this.crossComponentProjectFolder = page
|
|
197
199
|
.getByRole('button', { name: `Open workspace ${this.defaultFolderName}` })
|
|
200
|
+
.or(page.getByRole('link', {
|
|
201
|
+
name: `Open workspace ${this.defaultFolderName}`,
|
|
202
|
+
}))
|
|
198
203
|
.or(page.getByTitle(this.defaultFolderName, { exact: true }))
|
|
199
204
|
.first();
|
|
200
205
|
this.rows = page.getByRole('row');
|
|
@@ -537,7 +542,15 @@ class ModelerHomePage {
|
|
|
537
542
|
async clickProcessDiagram(name) {
|
|
538
543
|
await this.ensureInResourceContainer();
|
|
539
544
|
await (0, sessionRecovery_1.recoverStuckModelerLogin)(this.page);
|
|
540
|
-
|
|
545
|
+
// A Design System table row opens through a link laid over the row, which
|
|
546
|
+
// sits on top of the title text and takes its clicks -- so click the link.
|
|
547
|
+
// The link comes before the title in DOM order, so `first()` picks it
|
|
548
|
+
// whenever it exists; the title stays as the fallback for the classic table.
|
|
549
|
+
const row = this.rows.filter({ hasText: name });
|
|
550
|
+
const process = row
|
|
551
|
+
.getByRole('link', { name })
|
|
552
|
+
.or(row.getByTitle(name))
|
|
553
|
+
.first();
|
|
541
554
|
await (0, test_1.expect)(process).toBeVisible({ timeout: 90000 });
|
|
542
555
|
await process.click();
|
|
543
556
|
}
|
|
@@ -259,10 +259,12 @@ class ProcessApplicationPage {
|
|
|
259
259
|
await reopen.click({ timeout: 30000 });
|
|
260
260
|
}
|
|
261
261
|
async openByName(name) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
// Link first: a Design System row link lies over the title and takes its
|
|
263
|
+
// clicks (see ModelerHomePage.clickProcessDiagram).
|
|
264
|
+
const row = this.page.getByRole('row').filter({ hasText: name });
|
|
265
|
+
const processApplication = row
|
|
266
|
+
.getByRole('link', { name })
|
|
267
|
+
.or(row.getByTitle(name))
|
|
266
268
|
.first();
|
|
267
269
|
await (0, test_1.expect)(processApplication).toBeVisible({ timeout: 90000 });
|
|
268
270
|
await processApplication.click({ timeout: 60000 });
|
|
@@ -166,8 +166,13 @@ class ModelerHomePage {
|
|
|
166
166
|
.first();
|
|
167
167
|
this.openOrganizationsButton = page.getByLabel('Open Organizations');
|
|
168
168
|
this.manageButton = page.getByRole('button', { name: 'Manage' });
|
|
169
|
+
// A grid tile opens the workspace through a button, a list-view row
|
|
170
|
+
// through a link.
|
|
169
171
|
this.crossComponentProjectFolder = page
|
|
170
172
|
.getByRole('button', { name: `Open workspace ${this.defaultFolderName}` })
|
|
173
|
+
.or(page.getByRole('link', {
|
|
174
|
+
name: `Open workspace ${this.defaultFolderName}`,
|
|
175
|
+
}))
|
|
171
176
|
.or(page.getByTitle(this.defaultFolderName, { exact: true }))
|
|
172
177
|
.first();
|
|
173
178
|
// The Design System shell drops the breadcrumb-home hook and labels the
|
|
@@ -609,7 +614,15 @@ class ModelerHomePage {
|
|
|
609
614
|
// resource is one level down, so re-enter the container first.
|
|
610
615
|
async clickProcessDiagram(name) {
|
|
611
616
|
await this.ensureInResourceContainer();
|
|
612
|
-
|
|
617
|
+
// A Design System table row opens through a link laid over the row, which
|
|
618
|
+
// sits on top of the title text and takes its clicks -- so click the link.
|
|
619
|
+
// The link comes before the title in DOM order, so `first()` picks it
|
|
620
|
+
// whenever it exists; the title stays as the fallback for the classic table.
|
|
621
|
+
const row = this.rows.filter({ hasText: name });
|
|
622
|
+
const process = row
|
|
623
|
+
.getByRole('link', { name })
|
|
624
|
+
.or(row.getByTitle(name))
|
|
625
|
+
.first();
|
|
613
626
|
await (0, test_1.expect)(process).toBeVisible({ timeout: 90000 });
|
|
614
627
|
await process.click();
|
|
615
628
|
}
|