@camunda/e2e-test-suite 0.0.473 → 0.0.475

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.
@@ -11,7 +11,7 @@ class OperateLoginPage {
11
11
  this.page = page;
12
12
  this.usernameInput = page.getByLabel('Username');
13
13
  this.passwordInput = page.getByRole('textbox', { name: 'password' });
14
- this.loginButton = page.getByRole('button', { name: 'Login' });
14
+ this.loginButton = page.getByRole('button', { name: /log.?in|sign.?in/i });
15
15
  }
16
16
  async fillUsername(username) {
17
17
  await this.usernameInput.fill(username);
@@ -26,12 +26,17 @@ class OperateLoginPage {
26
26
  await this.loginButton.click({ timeout: 60000 });
27
27
  }
28
28
  async login(username, password) {
29
- await (0, test_1.expect)(this.usernameInput).toBeVisible({ timeout: 180000 });
30
- await this.clickUsername();
31
- await this.fillUsername(username);
32
- await this.fillPassword(password);
33
- await (0, test_1.expect)(this.loginButton).toBeVisible({ timeout: 120000 });
34
- await this.clickLoginButton();
29
+ try {
30
+ await (0, test_1.expect)(this.usernameInput).toBeVisible();
31
+ await (0, test_1.expect)(this.passwordInput).toBeVisible();
32
+ await this.clickUsername();
33
+ await this.fillUsername(username);
34
+ await this.fillPassword(password);
35
+ await this.clickLoginButton();
36
+ }
37
+ catch {
38
+ await (0, test_1.expect)(this.page.getByRole('link', { name: 'Camunda logo Operate' })).toBeVisible();
39
+ }
35
40
  }
36
41
  }
37
42
  exports.OperateLoginPage = OperateLoginPage;
@@ -11,7 +11,7 @@ class TaskListLoginPage {
11
11
  this.page = page;
12
12
  this.usernameInput = page.getByLabel('Username');
13
13
  this.passwordInput = page.getByRole('textbox', { name: 'password' });
14
- this.loginButton = page.getByRole('button', { name: 'Login' });
14
+ this.loginButton = page.getByRole('button', { name: /log.?in|sign.?in/i });
15
15
  }
16
16
  async fillUsername(username) {
17
17
  await this.usernameInput.fill(username);
@@ -26,12 +26,17 @@ class TaskListLoginPage {
26
26
  await this.loginButton.click({ timeout: 60000 });
27
27
  }
28
28
  async login(username, password) {
29
- await (0, test_1.expect)(this.usernameInput).toBeVisible({ timeout: 180000 });
30
- await this.clickUsername();
31
- await this.fillUsername(username);
32
- await this.fillPassword(password);
33
- await (0, test_1.expect)(this.loginButton).toBeVisible({ timeout: 120000 });
34
- await this.clickLoginButton();
29
+ try {
30
+ await (0, test_1.expect)(this.usernameInput).toBeVisible();
31
+ await (0, test_1.expect)(this.passwordInput).toBeVisible();
32
+ await this.clickUsername();
33
+ await this.fillUsername(username);
34
+ await this.fillPassword(password);
35
+ await this.clickLoginButton();
36
+ }
37
+ catch {
38
+ await (0, test_1.expect)(this.page.getByRole('link', { name: 'Camunda logo Tasklist' })).toBeVisible();
39
+ }
35
40
  }
36
41
  }
37
42
  exports.TaskListLoginPage = TaskListLoginPage;
@@ -4,6 +4,7 @@ const test_1 = require("@playwright/test");
4
4
  const SM_8_9_1 = require("../../fixtures/SM-8.9");
5
5
  const _setup_1 = require("../../test-setup.js");
6
6
  const sleep_1 = require("../../utils/sleep");
7
+ const env_1 = require("../../utils/env");
7
8
  SM_8_9_1.test.describe.configure({ mode: 'parallel' });
8
9
  SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
9
10
  SM_8_9_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
@@ -96,7 +97,7 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
96
97
  await modelerCreatePage.clickSecondPlacedGateway();
97
98
  await modelerCreatePage.clickAppendElementButton();
98
99
  await modelerCreatePage.clickAppendEndEventButton('parallelGateway');
99
- await (0, sleep_1.sleep)(5000);
100
+ await (0, sleep_1.sleep)(env_1.isOpenSearch ? 15000 : 5000);
100
101
  });
101
102
  await SM_8_9_1.test.step('Open Play', async () => {
102
103
  await modelerCreatePage.switchToPlay();
@@ -123,7 +124,7 @@ SM_8_9_1.test.describe('Deploy and run a process in Play', () => {
123
124
  await modelerCreatePage.clickAppendTaskButton();
124
125
  await modelerCreatePage.clickConnectToOtherElementButton();
125
126
  await modelerCreatePage.clickSecondPlacedGateway();
126
- await (0, sleep_1.sleep)(5000);
127
+ await (0, sleep_1.sleep)(env_1.isOpenSearch ? 15000 : 5000);
127
128
  await modelerCreatePage.switchToPlay();
128
129
  // After diagram modification, Play may show a "Continue" button
129
130
  // to redeploy, or it may show the diagram directly. Try clicking
@@ -6,6 +6,7 @@ const _setup_1 = require("../../test-setup.js");
6
6
  const sleep_1 = require("../../utils/sleep");
7
7
  const UtilitiesPage_1 = require("../../pages/SM-8.9/UtilitiesPage");
8
8
  const fileUpload_1 = require("../../utils/fileUpload");
9
+ const env_1 = require("../../utils/env");
9
10
  SM_8_9_1.test.describe.configure({ mode: 'parallel' });
10
11
  SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
11
12
  SM_8_9_1.test.beforeEach(async ({ navigationPage }, testInfo) => {
@@ -166,7 +167,7 @@ SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
166
167
  await modelerCreatePage.runProcessInstance(variables);
167
168
  });
168
169
  await SM_8_9_1.test.step('View process instance in Operate and verify completion', async () => {
169
- await (0, sleep_1.sleep)(3000); // Allow Zeebe to index the instance before navigating to Operate
170
+ await (0, sleep_1.sleep)(env_1.isOpenSearch ? 10000 : 3000); // Allow Zeebe to index the instance before navigating to Operate (OpenSearch is slower)
170
171
  await navigationPage.goToOperate();
171
172
  await operateHomePage.clickProcessesTab();
172
173
  await operateProcessesPage.clickProcessInstanceLink(processName, 'completed');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.473",
3
+ "version": "0.0.475",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",