@camunda/e2e-test-suite 0.0.355 → 0.0.357
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,13 +8,15 @@ declare class OperateHomePage {
|
|
|
8
8
|
readonly variableValueInput: Locator;
|
|
9
9
|
readonly saveVariableButton: Locator;
|
|
10
10
|
readonly editVariableSpinner: Locator;
|
|
11
|
+
readonly applyButton: Locator;
|
|
12
|
+
readonly openButton: Locator;
|
|
11
13
|
constructor(page: Page);
|
|
12
14
|
operateBannerIsVisible(): Promise<void>;
|
|
13
15
|
clickProcessesTab(): Promise<void>;
|
|
14
16
|
clickEditVariableButton(variableName: string): Promise<void>;
|
|
15
17
|
clickVariableValueInput(): Promise<void>;
|
|
16
18
|
clearVariableValueInput(): Promise<void>;
|
|
17
|
-
fillVariableValueInput(
|
|
19
|
+
fillVariableValueInput(newValue: string): Promise<void>;
|
|
18
20
|
clickSaveVariableButton(): Promise<void>;
|
|
19
21
|
}
|
|
20
22
|
export { OperateHomePage };
|
|
@@ -11,6 +11,8 @@ class OperateHomePage {
|
|
|
11
11
|
variableValueInput;
|
|
12
12
|
saveVariableButton;
|
|
13
13
|
editVariableSpinner;
|
|
14
|
+
applyButton;
|
|
15
|
+
openButton;
|
|
14
16
|
constructor(page) {
|
|
15
17
|
this.page = page;
|
|
16
18
|
this.operateBanner = page.getByRole('link', { name: 'Camunda logo Operate' });
|
|
@@ -25,6 +27,10 @@ class OperateHomePage {
|
|
|
25
27
|
.getByTestId('variable-operation-spinner')
|
|
26
28
|
.locator('circle')
|
|
27
29
|
.nth(1);
|
|
30
|
+
this.applyButton = page.getByRole('button', { name: 'Apply' });
|
|
31
|
+
this.openButton = page
|
|
32
|
+
.getByTestId('variable-testVariable')
|
|
33
|
+
.getByLabel('Open');
|
|
28
34
|
}
|
|
29
35
|
async operateBannerIsVisible() {
|
|
30
36
|
await (0, test_1.expect)(this.operateBanner).toBeVisible({ timeout: 30000 });
|
|
@@ -54,10 +60,17 @@ class OperateHomePage {
|
|
|
54
60
|
async clearVariableValueInput() {
|
|
55
61
|
await this.variableValueInput.clear();
|
|
56
62
|
}
|
|
57
|
-
async fillVariableValueInput(
|
|
58
|
-
await this.
|
|
63
|
+
async fillVariableValueInput(newValue) {
|
|
64
|
+
await this.openButton.click();
|
|
65
|
+
await this.page
|
|
66
|
+
.getByLabel('Edit Variable "testVariable"')
|
|
67
|
+
.getByText('"testValue"')
|
|
68
|
+
.dblclick();
|
|
69
|
+
await this.page.keyboard.press('Backspace');
|
|
70
|
+
await this.page.keyboard.type(newValue);
|
|
59
71
|
}
|
|
60
72
|
async clickSaveVariableButton() {
|
|
73
|
+
await this.applyButton.click();
|
|
61
74
|
await this.saveVariableButton.click();
|
|
62
75
|
}
|
|
63
76
|
}
|
|
@@ -78,12 +78,7 @@ c8Run_8_10_1.test.describe('HTO User Flow Tests', () => {
|
|
|
78
78
|
});
|
|
79
79
|
await (0, test_1.expect)(page.getByText('testVariable', { exact: true })).toBeVisible();
|
|
80
80
|
await operateHomePage.clickEditVariableButton('testVariable');
|
|
81
|
-
await operateHomePage.
|
|
82
|
-
await operateHomePage.clearVariableValueInput();
|
|
83
|
-
await operateHomePage.fillVariableValueInput('"updatedValue"');
|
|
84
|
-
await (0, test_1.expect)(operateHomePage.saveVariableButton).toBeVisible({
|
|
85
|
-
timeout: 30000,
|
|
86
|
-
});
|
|
81
|
+
await operateHomePage.fillVariableValueInput('updatedValue');
|
|
87
82
|
await operateHomePage.clickSaveVariableButton();
|
|
88
83
|
await (0, test_1.expect)(operateHomePage.editVariableSpinner).not.toBeVisible({
|
|
89
84
|
timeout: 120000,
|