@camunda/e2e-test-suite 0.0.1574 → 0.0.1575
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TaskDetailsPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
|
+
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
5
6
|
function cardinalToOrdinal(numberValue) {
|
|
6
7
|
const realOrderIndex = numberValue.toString();
|
|
7
8
|
if (['11', '12', '13'].includes(realOrderIndex.slice(-2))) {
|
|
@@ -109,8 +110,24 @@ class TaskDetailsPage {
|
|
|
109
110
|
await (0, test_1.expect)(this.page.getByText('Assigning...')).not.toBeVisible({
|
|
110
111
|
timeout: 180000,
|
|
111
112
|
});
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
// A Camunda user task's assignment goes through Zeebe and back through
|
|
114
|
+
// the Tasklist importer, and the details panel can keep showing the task
|
|
115
|
+
// as unassigned after "Assigning..." clears (the click is occasionally
|
|
116
|
+
// lost too). Reload the task and re-assign if it is still unassigned, as
|
|
117
|
+
// pages/SM-8.7/TaskDetailsPage.ts does; "Assigned to me" is still required.
|
|
118
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.assignedToMeText, {
|
|
119
|
+
totalTimeout: 600000,
|
|
120
|
+
visibilityTimeout: 60000,
|
|
121
|
+
postAction: async () => {
|
|
122
|
+
await this.page.reload();
|
|
123
|
+
await (0, test_1.expect)(this.assignToMeButton.or(this.assignedToMeText).first()).toBeVisible({ timeout: 60000 });
|
|
124
|
+
if (await this.assignToMeButton.isVisible()) {
|
|
125
|
+
await this.assignToMeButton.click({ timeout: 60000 });
|
|
126
|
+
await (0, test_1.expect)(this.page.getByText('Assigning...')).not.toBeVisible({
|
|
127
|
+
timeout: 180000,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
},
|
|
114
131
|
});
|
|
115
132
|
}
|
|
116
133
|
async clickUnassignButton() {
|