@camunda/e2e-test-suite 0.0.351 → 0.0.352

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,13 +11,15 @@ declare class OperateHomePage {
11
11
  readonly operateBanner: Locator;
12
12
  readonly noPermissionsMessage: Locator;
13
13
  readonly processPageHeading: Locator;
14
+ readonly applyButton: Locator;
15
+ readonly openButton: Locator;
14
16
  constructor(page: Page);
15
17
  clickProcessesTab(): Promise<void>;
16
18
  closeInformationDialog(): Promise<void>;
17
19
  clickEditVariableButton(variableName: string): Promise<void>;
18
20
  clickVariableValueInput(): Promise<void>;
19
21
  clearVariableValueInput(): Promise<void>;
20
- fillVariableValueInput(value: string): Promise<void>;
22
+ fillVariableValueInput(newValue: string): Promise<void>;
21
23
  clickSaveVariableButton(): Promise<void>;
22
24
  }
23
25
  export { OperateHomePage };
@@ -16,6 +16,8 @@ class OperateHomePage {
16
16
  operateBanner;
17
17
  noPermissionsMessage;
18
18
  processPageHeading;
19
+ applyButton;
20
+ openButton;
19
21
  constructor(page) {
20
22
  this.page = page;
21
23
  this.operateHeader = page.getByRole('link', { name: 'Camunda Operate' });
@@ -28,7 +30,9 @@ class OperateHomePage {
28
30
  });
29
31
  this.editVariableButton = page.getByTestId('edit-variable-button');
30
32
  this.variableValueInput = page.getByTestId('edit-variable-value');
31
- this.saveVariableButton = page.getByLabel('Save variable');
33
+ this.saveVariableButton = page.getByRole('button', {
34
+ name: 'Save variable',
35
+ });
32
36
  this.editVariableSpinner = page
33
37
  .getByTestId('variable-operation-spinner')
34
38
  .locator('circle')
@@ -40,6 +44,10 @@ class OperateHomePage {
40
44
  this.processPageHeading = page
41
45
  .getByTestId('expanded-panel')
42
46
  .getByText('Process', { exact: true });
47
+ this.applyButton = page.getByRole('button', { name: 'Apply' });
48
+ this.openButton = page
49
+ .getByTestId('variable-testVariable')
50
+ .getByLabel('Open');
43
51
  }
44
52
  async clickProcessesTab() {
45
53
  await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.processesTab);
@@ -54,8 +62,8 @@ class OperateHomePage {
54
62
  await this.informationDialog.click();
55
63
  }
56
64
  async clickEditVariableButton(variableName) {
57
- const editVariableButton = 'Edit variable ' + variableName;
58
- await this.page.getByLabel(editVariableButton).click();
65
+ const editVariableButton = 'variable-' + variableName;
66
+ await this.page.getByTestId(editVariableButton).getByLabel('Edit').click();
59
67
  }
60
68
  async clickVariableValueInput() {
61
69
  await this.variableValueInput.click();
@@ -63,11 +71,17 @@ class OperateHomePage {
63
71
  async clearVariableValueInput() {
64
72
  await this.variableValueInput.clear();
65
73
  }
66
- async fillVariableValueInput(value) {
67
- await this.variableValueInput.fill(value);
74
+ async fillVariableValueInput(newValue) {
75
+ await this.openButton.click();
76
+ await this.page
77
+ .getByLabel('Edit Variable "testVariable"')
78
+ .getByText('"testValue"')
79
+ .dblclick();
80
+ await this.page.keyboard.press('Backspace');
81
+ await this.page.keyboard.type(newValue);
68
82
  }
69
83
  async clickSaveVariableButton() {
70
- await this.saveVariableButton.click();
84
+ await this.applyButton.click();
71
85
  }
72
86
  }
73
87
  exports.OperateHomePage = OperateHomePage;
@@ -11,13 +11,15 @@ declare class OperateHomePage {
11
11
  readonly licenseKeyTagNonProduction: Locator;
12
12
  readonly licenseKeyTagProduction: Locator;
13
13
  readonly processPageHeading: Locator;
14
+ readonly applyButton: Locator;
15
+ readonly openButton: Locator;
14
16
  constructor(page: Page);
15
17
  clickProcessesTab(): Promise<void>;
16
18
  closeInformationDialog(): Promise<void>;
17
19
  clickEditVariableButton(variableName: string): Promise<void>;
18
20
  clickVariableValueInput(): Promise<void>;
19
21
  clearVariableValueInput(): Promise<void>;
20
- fillVariableValueInput(value: string): Promise<void>;
22
+ fillVariableValueInput(newValue: string): Promise<void>;
21
23
  clickSaveVariableButton(): Promise<void>;
22
24
  openProcess(processName: string): Promise<void>;
23
25
  }
@@ -17,6 +17,8 @@ class OperateHomePage {
17
17
  licenseKeyTagNonProduction;
18
18
  licenseKeyTagProduction;
19
19
  processPageHeading;
20
+ applyButton;
21
+ openButton;
20
22
  constructor(page) {
21
23
  this.page = page;
22
24
  this.operateBanner = page.getByRole('link', { name: 'Camunda logo Operate' });
@@ -41,6 +43,10 @@ class OperateHomePage {
41
43
  this.processPageHeading = page
42
44
  .getByTestId('expanded-panel')
43
45
  .getByRole('heading', { name: 'Process' });
46
+ this.applyButton = page.getByRole('button', { name: 'Apply' });
47
+ this.openButton = page
48
+ .getByTestId('variable-testVariable')
49
+ .getByLabel('Open');
44
50
  }
45
51
  async clickProcessesTab() {
46
52
  await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.processesTab, {
@@ -59,8 +65,8 @@ class OperateHomePage {
59
65
  await this.informationDialog.click();
60
66
  }
61
67
  async clickEditVariableButton(variableName) {
62
- const editVariableButton = 'Edit variable ' + variableName;
63
- await this.page.getByLabel(editVariableButton).click();
68
+ const editVariableButton = 'variable-' + variableName;
69
+ await this.page.getByTestId(editVariableButton).getByLabel('Edit').click();
64
70
  }
65
71
  async clickVariableValueInput() {
66
72
  await this.variableValueInput.click();
@@ -68,11 +74,17 @@ class OperateHomePage {
68
74
  async clearVariableValueInput() {
69
75
  await this.variableValueInput.clear();
70
76
  }
71
- async fillVariableValueInput(value) {
72
- await this.variableValueInput.fill(value);
77
+ async fillVariableValueInput(newValue) {
78
+ await this.openButton.click();
79
+ await this.page
80
+ .getByLabel('Edit Variable "testVariable"')
81
+ .getByText('"testValue"')
82
+ .dblclick();
83
+ await this.page.keyboard.press('Backspace');
84
+ await this.page.keyboard.type(newValue);
73
85
  }
74
86
  async clickSaveVariableButton() {
75
- await this.saveVariableButton.click();
87
+ await this.applyButton.click();
76
88
  }
77
89
  async openProcess(processName) {
78
90
  await this.page.getByText(processName).click();
@@ -176,9 +176,7 @@ _8_10_1.test.describe('HTO User Flow Tests', () => {
176
176
  });
177
177
  await (0, test_1.expect)(operateTab.getByText('testVariable', { exact: true })).toBeVisible();
178
178
  await operateTabHomePage.clickEditVariableButton('testVariable');
179
- await operateTabHomePage.clickVariableValueInput();
180
- await operateTabHomePage.clearVariableValueInput();
181
- await operateTabHomePage.fillVariableValueInput('"updatedValue"');
179
+ await operateTabHomePage.fillVariableValueInput('updatedValue');
182
180
  await operateTabHomePage.clickSaveVariableButton();
183
181
  await (0, test_1.expect)(operateTabHomePage.editVariableSpinner).not.toBeVisible({
184
182
  timeout: 180000,
@@ -241,9 +239,7 @@ _8_10_1.test.describe('HTO User Flow Tests', () => {
241
239
  });
242
240
  await (0, test_1.expect)(page.getByText('testVariable', { exact: true })).toBeVisible();
243
241
  await operateHomePage.clickEditVariableButton('testVariable');
244
- await operateHomePage.clickVariableValueInput();
245
- await operateHomePage.clearVariableValueInput();
246
- await operateHomePage.fillVariableValueInput('"updatedValue"');
242
+ await operateHomePage.fillVariableValueInput('updatedValue');
247
243
  await operateHomePage.clickSaveVariableButton();
248
244
  await (0, test_1.expect)(operateHomePage.editVariableSpinner).not.toBeVisible({
249
245
  timeout: 180000,
@@ -127,9 +127,7 @@ SM_8_10_1.test.describe('HTO User Flow Tests', () => {
127
127
  });
128
128
  await (0, test_1.expect)(page.getByText('testVariable', { exact: true })).toBeVisible();
129
129
  await operateHomePage.clickEditVariableButton('testVariable');
130
- await operateHomePage.clickVariableValueInput();
131
- await operateHomePage.clearVariableValueInput();
132
- await operateHomePage.fillVariableValueInput('"updatedValue"');
130
+ await operateHomePage.fillVariableValueInput('"testVariable"');
133
131
  await (0, test_1.expect)(operateHomePage.saveVariableButton).toBeVisible({
134
132
  timeout: 30000,
135
133
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.351",
3
+ "version": "0.0.352",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",