@camunda/e2e-test-suite 0.0.183 → 0.0.185
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.
|
@@ -26,13 +26,9 @@ class TaskProcessesPage {
|
|
|
26
26
|
}
|
|
27
27
|
async startProcess(name) {
|
|
28
28
|
const found = await (0, UtilitiesPage_1.findTextWithPagination)(this.page, name, 60000, async () => {
|
|
29
|
-
|
|
30
|
-
.locator('
|
|
31
|
-
.filter({
|
|
32
|
-
hasText: new RegExp(`^${name}.*Start process$`),
|
|
33
|
-
})
|
|
34
|
-
.nth(1);
|
|
35
|
-
await container
|
|
29
|
+
await this.page
|
|
30
|
+
.locator('[data-testid="process-tile"]')
|
|
31
|
+
.filter({ hasText: name })
|
|
36
32
|
.getByRole('button', { name: 'Start process' })
|
|
37
33
|
.click({ timeout: 60000 });
|
|
38
34
|
});
|
|
@@ -13,7 +13,8 @@ async function findLocatorWithPagination(page, locator, options) {
|
|
|
13
13
|
break;
|
|
14
14
|
}
|
|
15
15
|
const textExists = await locator
|
|
16
|
-
.
|
|
16
|
+
.waitFor({ state: 'visible', timeout: 5000 })
|
|
17
|
+
.then(() => true)
|
|
17
18
|
.catch(() => false);
|
|
18
19
|
if (textExists) {
|
|
19
20
|
console.log(`Found locator "${locator}" on page ${pageNum + 1}`);
|