@camunda/e2e-test-suite 0.0.789 → 0.0.790

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.
@@ -8,6 +8,13 @@ const sleep_1 = require("../../utils/sleep");
8
8
  const resetSession_1 = require("../../utils/resetSession");
9
9
  const users_1 = require("../../utils/users");
10
10
  const mainUser = (0, users_1.getTestUser)('twentyFifthUser');
11
+ // "Permission for All Processes" runs in parallel with the two sibling RBA
12
+ // flows. Sharing one account across all three meant a shared login and a
13
+ // shared per-user authorization store, so a sibling's grant surfaced in this
14
+ // flow's assertion and the parallel logins contended. Give it a dedicated
15
+ // user (C8_USERNAME_TEST_27, org admin_18) so its login and authorizations
16
+ // are isolated from the two siblings.
17
+ const allProcessesUser = (0, users_1.getTestUser)('twentySeventhUser');
11
18
  _8_7_1.test.describe.configure({ mode: 'parallel' });
12
19
  _8_7_1.test.describe('RBA Enabled User Flows Test', () => {
13
20
  const clusterNames = {
@@ -15,8 +22,14 @@ _8_7_1.test.describe('RBA Enabled User Flows Test', () => {
15
22
  'RBA On User Flow - Permission for One Process': 'Second RBA Cluster',
16
23
  'RBA On User Flow - Permission for All Processes': 'Third RBA Cluster',
17
24
  };
25
+ const usersByTitle = {
26
+ 'RBA On User Flow - No User Permission': mainUser,
27
+ 'RBA On User Flow - Permission for One Process': mainUser,
28
+ 'RBA On User Flow - Permission for All Processes': allProcessesUser,
29
+ };
18
30
  _8_7_1.test.beforeEach(async ({ page, homePage, clusterPage, loginPage }, testInfo) => {
19
- await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, mainUser, (testInfo.workerIndex + 1) * 1000);
31
+ const currentUser = usersByTitle[testInfo.title] ?? mainUser;
32
+ await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, currentUser, (testInfo.workerIndex + 1) * 1000);
20
33
  await (0, test_1.expect)(homePage.clusterTab).toBeVisible({ timeout: 120000 });
21
34
  await homePage.clickClusters();
22
35
  (0, test_1.expect)(clusterNames[testInfo.title]).toBeTruthy();
@@ -249,7 +262,7 @@ _8_7_1.test.describe('RBA Enabled User Flows Test', () => {
249
262
  await appsPage.clickConsoleLink();
250
263
  await homePage.clickOrganization();
251
264
  await consoleOrganizationsPage.clickUsersTab();
252
- await consoleOrganizationsPage.clickMainUser(mainUser.username);
265
+ await consoleOrganizationsPage.clickMainUser(allProcessesUser.username);
253
266
  await consoleOrganizationsPage.clickAuthorizations();
254
267
  await consoleOrganizationsPage.authorizedResourcesAssertion([
255
268
  processId,
@@ -269,7 +282,7 @@ _8_7_1.test.describe('RBA Enabled User Flows Test', () => {
269
282
  await appsPage.clickConsoleLink();
270
283
  await homePage.clickOrganization();
271
284
  await consoleOrganizationsPage.clickUsersTab();
272
- await consoleOrganizationsPage.clickMainUser(mainUser.username);
285
+ await consoleOrganizationsPage.clickMainUser(allProcessesUser.username);
273
286
  await consoleOrganizationsPage.clickAuthorizations();
274
287
  await consoleOrganizationsPage.authorizedResourcesAssertion([
275
288
  processId1,
@@ -67,6 +67,10 @@ export declare const testUsers: {
67
67
  username: string;
68
68
  password: string;
69
69
  };
70
+ twentySeventhUser: {
71
+ username: string;
72
+ password: string;
73
+ };
70
74
  };
71
75
  export declare const smokeTestUsers: {
72
76
  mainUser: {
@@ -70,6 +70,10 @@ exports.testUsers = {
70
70
  username: process.env.C8_USERNAME_TEST_26,
71
71
  password: process.env.C8_PASSWORD_TEST_26,
72
72
  },
73
+ twentySeventhUser: {
74
+ username: process.env.C8_USERNAME_TEST_27,
75
+ password: process.env.C8_PASSWORD_TEST_27,
76
+ },
73
77
  };
74
78
  exports.smokeTestUsers = {
75
79
  mainUser: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.789",
3
+ "version": "0.0.790",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",