@camunda/e2e-test-suite 0.0.113 → 0.0.115

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.ConnectorSettingsPage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
+ const sleep_1 = require("../../utils/sleep");
5
6
  class ConnectorSettingsPage {
6
7
  page;
7
8
  urlInput;
@@ -68,6 +69,7 @@ class ConnectorSettingsPage {
68
69
  timeout: 120000,
69
70
  force: true,
70
71
  });
72
+ (0, test_1.expect)(await this.resultExpressionInput.textContent()).toEqual(resultExpression);
71
73
  await this.page.waitForTimeout(1000);
72
74
  }
73
75
  async selectAuthenticationType(authentication) {
@@ -107,6 +109,7 @@ class ConnectorSettingsPage {
107
109
  async fillResultVariableInput(variable) {
108
110
  await this.resultVariableInput.fill(variable, { timeout: 90000 });
109
111
  (0, test_1.expect)(await this.resultVariableInput.inputValue()).toEqual(variable);
112
+ await (0, sleep_1.sleep)(1000);
110
113
  }
111
114
  async clickBearerTokenInput() {
112
115
  await this.bearerTokenInput.click({ timeout: 90000 });
@@ -12,6 +12,7 @@ declare class FormJsPage {
12
12
  readonly uploadMultipleFilesToggle: Locator;
13
13
  readonly documentReferenceInput: Locator;
14
14
  readonly generalPanel: Locator;
15
+ readonly textFieldInForm: Locator;
15
16
  constructor(page: Page);
16
17
  generateAIForm(request?: string): Promise<void>;
17
18
  clickAIFormGeneratorButton(): Promise<void>;
@@ -16,6 +16,7 @@ class FormJsPage {
16
16
  uploadMultipleFilesToggle;
17
17
  documentReferenceInput;
18
18
  generalPanel;
19
+ textFieldInForm;
19
20
  constructor(page) {
20
21
  this.page = page;
21
22
  this.aiFormGeneratorButton = page.getByRole('button', {
@@ -33,6 +34,9 @@ class FormJsPage {
33
34
  name: 'document reference',
34
35
  });
35
36
  this.generalPanel = page.getByTitle('General').first();
37
+ this.textFieldInForm = page
38
+ .getByLabel('Form Definition')
39
+ .getByText('Text field');
36
40
  }
37
41
  async generateAIForm(request = 'Create a form with the following fields: 1. A text field with the label "Full Name" 2. A number with the label "Count" 3. A date input with the label "Date of birth"4. A Checkbox with the label "Agree"') {
38
42
  await (0, test_1.expect)(this.aiFormGeneratorButton).toBeVisible({
@@ -65,6 +69,8 @@ class FormJsPage {
65
69
  }
66
70
  async fillKeyInput(key) {
67
71
  await this.keyInput.fill(key, { timeout: 60000 });
72
+ await (0, test_1.expect)(this.keyInput).toHaveValue(key, { timeout: 20000 });
73
+ await (0, sleep_1.sleep)(1000);
68
74
  }
69
75
  async enableUploadMultipleFiles() {
70
76
  await this.uploadMultipleFilesToggle.click({ timeout: 60000 });
@@ -523,12 +523,8 @@ class ModelerCreatePage {
523
523
  });
524
524
  await this.selectCluster(clusterName);
525
525
  await this.clickDeploySubButtonWithRetry(clusterName);
526
- await (0, test_1.expect)(this.viewProcessLink).toBeVisible({
527
- timeout: 180000,
528
- });
529
- await (0, test_1.expect)(this.viewProcessLink).toBeHidden({
530
- timeout: 120000,
531
- });
526
+ await (0, test_1.expect)(this.viewProcessLink).toBeVisible({ timeout: 30000 });
527
+ await (0, test_1.expect)(this.viewProcessLink).toBeHidden({ timeout: 30000 });
532
528
  }
533
529
  async clickStartInstanceMainButton() {
534
530
  await this.deployAndRunMainButton.click({ timeout: 30000 });
@@ -685,7 +681,10 @@ class ModelerCreatePage {
685
681
  const retries = 3;
686
682
  for (let i = 0; i < retries; i++) {
687
683
  try {
688
- await this.deploySubButton.click({ timeout: 15000, force: true });
684
+ await (0, test_1.expect)(this.deploySubButton).toBeVisible({ timeout: 20000 });
685
+ await (0, test_1.expect)(this.deploySubButton).toBeEnabled();
686
+ await this.deploySubButton.click({ force: true });
687
+ await (0, test_1.expect)(this.dialog).not.toBeVisible();
689
688
  return;
690
689
  }
691
690
  catch (error) {
@@ -137,8 +137,7 @@ _8_9_1.test.describe('Smoke Tests', () => {
137
137
  await (0, test_1.expect)(optimizeTabOptimizeReportPage.oneUserTaskInstance).toHaveCount(2, { timeout: 60000 });
138
138
  });
139
139
  });
140
- // Skipping test due to instability impacting AlwaysGreen
141
- _8_9_1.test.skip('Most Common REST Connector User Flow', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
140
+ (0, _8_9_1.test)('Most Common REST Connector User Flow', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
142
141
  _8_9_1.test.slow();
143
142
  const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
144
143
  const processName = 'REST_Connector_Basic_Auth_Process' + randomString;
@@ -157,7 +156,6 @@ _8_9_1.test.describe('Smoke Tests', () => {
157
156
  await _8_9_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
158
157
  await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', 'result', { username: 'username', password: 'password' });
159
158
  await modelerCreatePage.runProcessInstance(clusterName);
160
- await (0, _setup_1.performBasicAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'username', 'password');
161
159
  });
162
160
  await _8_9_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
163
161
  await appsPage.clickCamundaApps();
@@ -428,6 +428,7 @@ _8_9_1.test.describe('Web Modeler User Flow Tests', () => {
428
428
  await modelerHomePage.enterFormName(formName);
429
429
  await (0, sleep_1.sleep)(10000);
430
430
  await formJsPage.dragAndDrop(formJsPage.textField, formJsPage.formEditor);
431
+ await (0, test_1.expect)(formJsPage.textFieldInForm).toBeVisible();
431
432
  await (0, sleep_1.sleep)(10000);
432
433
  });
433
434
  await _8_9_1.test.step('Add A BPMN Template To The Project', async () => {
@@ -479,6 +480,7 @@ _8_9_1.test.describe('Web Modeler User Flow Tests', () => {
479
480
  await modelerHomePage.clickDiagramTypeDropdown();
480
481
  await modelerHomePage.clickFormOption();
481
482
  await modelerHomePage.enterFormName(formName);
483
+ await (0, sleep_1.sleep)(2000);
482
484
  await formJsPage.dragAndDrop(formJsPage.textField, formJsPage.formEditor);
483
485
  await formJsPage.clickGeneralPropertiesPanel();
484
486
  await formJsPage.fillKeyInput('Public_Form_Text_Field');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",