@camunda/e2e-test-suite 0.0.144 → 0.0.145
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.9/FormJsPage.js +1 -1
- package/dist/pages/8.9/ModelerHomePage.js +5 -4
- package/dist/tests/8.9/smoke-tests.spec.js +1 -1
- package/dist/tests/8.9/utr-enabled-user-flows.spec.js +1 -1
- package/dist/tests/8.9/web-modeler-user-flows.spec.js +1 -1
- package/dist/utils/users.d.ts +13 -55
- package/dist/utils/users.js +40 -30
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ class FormJsPage {
|
|
|
33
33
|
this.documentReferenceInput = page.getByRole('textbox', {
|
|
34
34
|
name: 'document reference',
|
|
35
35
|
});
|
|
36
|
-
this.generalPanel = page.
|
|
36
|
+
this.generalPanel = page.locator('[data-group-id="group-general"]').first();
|
|
37
37
|
this.textFieldInForm = page
|
|
38
38
|
.getByLabel('Form Definition')
|
|
39
39
|
.getByText('Text field');
|
|
@@ -76,6 +76,8 @@ class ModelerHomePage {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
async clickCreateNewProjectButton() {
|
|
79
|
+
await (0, test_1.expect)(this.createNewProjectButton).toBeVisible({ timeout: 60000 });
|
|
80
|
+
await (0, test_1.expect)(this.createNewProjectButton).toBeEnabled({ timeout: 60000 });
|
|
79
81
|
await this.createNewProjectButton.click({ timeout: 90000 });
|
|
80
82
|
}
|
|
81
83
|
async enterNewProjectName(name) {
|
|
@@ -198,10 +200,9 @@ class ModelerHomePage {
|
|
|
198
200
|
}
|
|
199
201
|
async clickMessageBanner() {
|
|
200
202
|
try {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
]);
|
|
203
|
+
const button = this.messageBanner.or(this.closeButton).first();
|
|
204
|
+
await (0, test_1.expect)(button).toBeVisible({ timeout: 15000 });
|
|
205
|
+
await button.click();
|
|
205
206
|
}
|
|
206
207
|
catch {
|
|
207
208
|
console.log('No banner or close button found to click');
|
|
@@ -15,7 +15,7 @@ const OptimizeCollectionsPage_1 = require("../../pages/8.9/OptimizeCollectionsPa
|
|
|
15
15
|
const OptimizeReportPage_1 = require("../../pages/8.9/OptimizeReportPage");
|
|
16
16
|
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
17
17
|
const users_1 = require("../../utils/users");
|
|
18
|
-
const testUser = (0, users_1.getTestUser)('
|
|
18
|
+
const testUser = (0, users_1.getTestUser)('thirteenthUser');
|
|
19
19
|
_8_9_1.test.describe.configure({ mode: 'parallel' });
|
|
20
20
|
//Skip until multi users can be reliably created in test orgs
|
|
21
21
|
_8_9_1.test.describe.skip('Smoke Tests', () => {
|
|
@@ -9,7 +9,7 @@ const resetSession_1 = require("../../utils/resetSession");
|
|
|
9
9
|
const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
|
|
10
10
|
const LoginPage_1 = require("../../pages/8.9/LoginPage");
|
|
11
11
|
const users_1 = require("../../utils/users");
|
|
12
|
-
const mainUser = (0, users_1.getTestUser)('
|
|
12
|
+
const mainUser = (0, users_1.getTestUser)('twelfthUser');
|
|
13
13
|
_8_9_1.test.describe.parallel('UTR Enabled User Flows Test @tasklistV1', () => {
|
|
14
14
|
const clusterName = 'Test Cluster';
|
|
15
15
|
_8_9_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
@@ -13,7 +13,7 @@ const sleep_1 = require("../../utils/sleep");
|
|
|
13
13
|
const mailSlurpClient_1 = require("../../utils/mailSlurpClient");
|
|
14
14
|
const resetSession_1 = require("../../utils/resetSession");
|
|
15
15
|
const users_1 = require("../../utils/users");
|
|
16
|
-
const testUser = (0, users_1.getTestUser)('
|
|
16
|
+
const testUser = (0, users_1.getTestUser)('eleventhUser');
|
|
17
17
|
_8_9_1.test.describe.configure({ mode: 'parallel' });
|
|
18
18
|
_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
19
19
|
const clusterName = 'Test Cluster';
|
package/dist/utils/users.d.ts
CHANGED
|
@@ -3,6 +3,14 @@ export declare const testUsers: {
|
|
|
3
3
|
username: string;
|
|
4
4
|
password: string;
|
|
5
5
|
};
|
|
6
|
+
eleventhUser: {
|
|
7
|
+
username: string;
|
|
8
|
+
password: string;
|
|
9
|
+
};
|
|
10
|
+
twelfthUser: {
|
|
11
|
+
username: string;
|
|
12
|
+
password: string;
|
|
13
|
+
};
|
|
6
14
|
thirteenthUser: {
|
|
7
15
|
username: string;
|
|
8
16
|
password: string;
|
|
@@ -59,19 +67,17 @@ export declare const testUsers: {
|
|
|
59
67
|
username: string;
|
|
60
68
|
password: string;
|
|
61
69
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
twentyEighthUser: {
|
|
70
|
+
};
|
|
71
|
+
export declare const smokeTestUsers: {
|
|
72
|
+
mainUser: {
|
|
67
73
|
username: string;
|
|
68
74
|
password: string;
|
|
69
75
|
};
|
|
70
|
-
|
|
76
|
+
thirteenthUser: {
|
|
71
77
|
username: string;
|
|
72
78
|
password: string;
|
|
73
79
|
};
|
|
74
|
-
|
|
80
|
+
twentyFirstUser: {
|
|
75
81
|
username: string;
|
|
76
82
|
password: string;
|
|
77
83
|
};
|
|
@@ -89,52 +95,4 @@ export declare function getTestUsers(): ({
|
|
|
89
95
|
} | {
|
|
90
96
|
username: string;
|
|
91
97
|
password: string;
|
|
92
|
-
} | {
|
|
93
|
-
username: string;
|
|
94
|
-
password: string;
|
|
95
|
-
} | {
|
|
96
|
-
username: string;
|
|
97
|
-
password: string;
|
|
98
|
-
} | {
|
|
99
|
-
username: string;
|
|
100
|
-
password: string;
|
|
101
|
-
} | {
|
|
102
|
-
username: string;
|
|
103
|
-
password: string;
|
|
104
|
-
} | {
|
|
105
|
-
username: string;
|
|
106
|
-
password: string;
|
|
107
|
-
} | {
|
|
108
|
-
username: string;
|
|
109
|
-
password: string;
|
|
110
|
-
} | {
|
|
111
|
-
username: string;
|
|
112
|
-
password: string;
|
|
113
|
-
} | {
|
|
114
|
-
username: string;
|
|
115
|
-
password: string;
|
|
116
|
-
} | {
|
|
117
|
-
username: string;
|
|
118
|
-
password: string;
|
|
119
|
-
} | {
|
|
120
|
-
username: string;
|
|
121
|
-
password: string;
|
|
122
|
-
} | {
|
|
123
|
-
username: string;
|
|
124
|
-
password: string;
|
|
125
|
-
} | {
|
|
126
|
-
username: string;
|
|
127
|
-
password: string;
|
|
128
|
-
} | {
|
|
129
|
-
username: string;
|
|
130
|
-
password: string;
|
|
131
|
-
} | {
|
|
132
|
-
username: string;
|
|
133
|
-
password: string;
|
|
134
|
-
} | {
|
|
135
|
-
username: string;
|
|
136
|
-
password: string;
|
|
137
|
-
} | {
|
|
138
|
-
username: string;
|
|
139
|
-
password: string;
|
|
140
98
|
})[];
|
package/dist/utils/users.js
CHANGED
|
@@ -1,82 +1,88 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTestUsers = exports.getTestUser = exports.testUsers = void 0;
|
|
3
|
+
exports.getTestUsers = exports.getTestUser = exports.smokeTestUsers = exports.testUsers = void 0;
|
|
4
4
|
exports.testUsers = {
|
|
5
5
|
mainUser: {
|
|
6
6
|
username: process.env.C8_USERNAME,
|
|
7
7
|
password: process.env.C8_PASSWORD,
|
|
8
8
|
},
|
|
9
|
+
eleventhUser: {
|
|
10
|
+
username: process.env.C8_USERNAME_TEST_11,
|
|
11
|
+
password: process.env.C8_PASSWORD_TEST_11,
|
|
12
|
+
},
|
|
13
|
+
twelfthUser: {
|
|
14
|
+
username: process.env.C8_USERNAME_TEST_12,
|
|
15
|
+
password: process.env.C8_PASSWORD_TEST_12,
|
|
16
|
+
},
|
|
9
17
|
thirteenthUser: {
|
|
10
18
|
username: process.env.C8_USERNAME_TEST_13,
|
|
11
|
-
password: process.env.
|
|
19
|
+
password: process.env.C8_PASSWORD_TEST_13,
|
|
12
20
|
},
|
|
13
21
|
fourteenthUser: {
|
|
14
22
|
username: process.env.C8_USERNAME_TEST_14,
|
|
15
|
-
password: process.env.
|
|
23
|
+
password: process.env.C8_PASSWORD_TEST_14,
|
|
16
24
|
},
|
|
17
25
|
fifteenthUser: {
|
|
18
26
|
username: process.env.C8_USERNAME_TEST_15,
|
|
19
|
-
password: process.env.
|
|
27
|
+
password: process.env.C8_PASSWORD_TEST_15,
|
|
20
28
|
},
|
|
21
29
|
sixteenthUser: {
|
|
22
30
|
username: process.env.C8_USERNAME_TEST_16,
|
|
23
|
-
password: process.env.
|
|
31
|
+
password: process.env.C8_PASSWORD_TEST_16,
|
|
24
32
|
},
|
|
25
33
|
seventeenthUser: {
|
|
26
34
|
username: process.env.C8_USERNAME_TEST_17,
|
|
27
|
-
password: process.env.
|
|
35
|
+
password: process.env.C8_PASSWORD_TEST_17,
|
|
28
36
|
},
|
|
29
37
|
eighteenthUser: {
|
|
30
38
|
username: process.env.C8_USERNAME_TEST_18,
|
|
31
|
-
password: process.env.
|
|
39
|
+
password: process.env.C8_PASSWORD_TEST_18,
|
|
32
40
|
},
|
|
33
41
|
nineteenthUser: {
|
|
34
42
|
username: process.env.C8_USERNAME_TEST_19,
|
|
35
|
-
password: process.env.
|
|
43
|
+
password: process.env.C8_PASSWORD_TEST_19,
|
|
36
44
|
},
|
|
37
45
|
twentiethUser: {
|
|
38
46
|
username: process.env.C8_USERNAME_TEST_20,
|
|
39
|
-
password: process.env.
|
|
47
|
+
password: process.env.C8_PASSWORD_TEST_20,
|
|
40
48
|
},
|
|
41
49
|
twentyFirstUser: {
|
|
42
50
|
username: process.env.C8_USERNAME_TEST_21,
|
|
43
|
-
password: process.env.
|
|
51
|
+
password: process.env.C8_PASSWORD_TEST_21,
|
|
44
52
|
},
|
|
45
53
|
twentySecondUser: {
|
|
46
54
|
username: process.env.C8_USERNAME_TEST_22,
|
|
47
|
-
password: process.env.
|
|
55
|
+
password: process.env.C8_PASSWORD_TEST_22,
|
|
48
56
|
},
|
|
49
57
|
twentyThirdUser: {
|
|
50
58
|
username: process.env.C8_USERNAME_TEST_23,
|
|
51
|
-
password: process.env.
|
|
59
|
+
password: process.env.C8_PASSWORD_TEST_23,
|
|
52
60
|
},
|
|
53
61
|
twentyFourthUser: {
|
|
54
62
|
username: process.env.C8_USERNAME_TEST_24,
|
|
55
|
-
password: process.env.
|
|
63
|
+
password: process.env.C8_PASSWORD_TEST_24,
|
|
56
64
|
},
|
|
57
65
|
twentyFifthUser: {
|
|
58
66
|
username: process.env.C8_USERNAME_TEST_25,
|
|
59
|
-
password: process.env.
|
|
67
|
+
password: process.env.C8_PASSWORD_TEST_25,
|
|
60
68
|
},
|
|
61
69
|
twentySixthUser: {
|
|
62
70
|
username: process.env.C8_USERNAME_TEST_26,
|
|
63
|
-
password: process.env.
|
|
64
|
-
},
|
|
65
|
-
twentySeventhUser: {
|
|
66
|
-
username: process.env.C8_USERNAME_TEST_27,
|
|
67
|
-
password: process.env.C8_PASSWORD,
|
|
71
|
+
password: process.env.C8_PASSWORD_TEST_26,
|
|
68
72
|
},
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
};
|
|
74
|
+
exports.smokeTestUsers = {
|
|
75
|
+
mainUser: {
|
|
76
|
+
username: process.env.C8_USERNAME,
|
|
71
77
|
password: process.env.C8_PASSWORD,
|
|
72
78
|
},
|
|
73
|
-
|
|
74
|
-
username: process.env.
|
|
75
|
-
password: process.env.
|
|
79
|
+
thirteenthUser: {
|
|
80
|
+
username: process.env.C8_USERNAME_TEST_13,
|
|
81
|
+
password: process.env.C8_PASSWORD_TEST_13,
|
|
76
82
|
},
|
|
77
|
-
|
|
78
|
-
username: process.env.
|
|
79
|
-
password: process.env.
|
|
83
|
+
twentyFirstUser: {
|
|
84
|
+
username: process.env.C8_USERNAME_TEST_21,
|
|
85
|
+
password: process.env.C8_PASSWORD_TEST_21,
|
|
80
86
|
},
|
|
81
87
|
};
|
|
82
88
|
function getTestUser(userKey) {
|
|
@@ -88,8 +94,12 @@ function getTestUser(userKey) {
|
|
|
88
94
|
}
|
|
89
95
|
exports.getTestUser = getTestUser;
|
|
90
96
|
function getTestUsers() {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
if (process.env.IS_AG === 'true' && process.env.MULTI_USERS === 'true') {
|
|
98
|
+
return Object.values(exports.smokeTestUsers);
|
|
99
|
+
}
|
|
100
|
+
else if (process.env.MULTI_USERS === 'true') {
|
|
101
|
+
return Object.values(exports.testUsers);
|
|
102
|
+
}
|
|
103
|
+
return [exports.testUsers.mainUser];
|
|
94
104
|
}
|
|
95
105
|
exports.getTestUsers = getTestUsers;
|