@camunda/e2e-test-suite 0.0.316 → 0.0.318
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.
- package/dist/pages/SM-8.7/KeycloakAdminPage.d.ts +4 -0
- package/dist/pages/SM-8.7/KeycloakAdminPage.js +16 -4
- package/dist/pages/SM-8.7/PlayPage.js +2 -2
- package/dist/pages/SM-8.9/OperateProcessesPage.js +1 -0
- package/dist/tests/SM-8.9/web-modeler-user-flows.spec.js +10 -1
- package/dist/utils/resetSession.js +2 -0
- package/package.json +1 -1
|
@@ -2,6 +2,10 @@ import { Page, Locator } from '@playwright/test';
|
|
|
2
2
|
declare class KeycloakAdminPage {
|
|
3
3
|
private page;
|
|
4
4
|
readonly keycloakBanner: Locator;
|
|
5
|
+
readonly credentialsTab: Locator;
|
|
6
|
+
readonly noCredentialsEmptyAction: Locator;
|
|
7
|
+
readonly passwordField: Locator;
|
|
8
|
+
readonly passwordConfirmationField: Locator;
|
|
5
9
|
constructor(page: Page);
|
|
6
10
|
toBeVisible(): Promise<void>;
|
|
7
11
|
switchToCamundaPlatform(): Promise<void>;
|
|
@@ -6,9 +6,17 @@ const sleep_1 = require("../../utils/sleep");
|
|
|
6
6
|
class KeycloakAdminPage {
|
|
7
7
|
page;
|
|
8
8
|
keycloakBanner;
|
|
9
|
+
credentialsTab;
|
|
10
|
+
noCredentialsEmptyAction;
|
|
11
|
+
passwordField;
|
|
12
|
+
passwordConfirmationField;
|
|
9
13
|
constructor(page) {
|
|
10
14
|
this.page = page;
|
|
11
15
|
this.keycloakBanner = page.locator('#kc-main-content-page-container');
|
|
16
|
+
this.credentialsTab = page.getByTestId('credentials');
|
|
17
|
+
this.noCredentialsEmptyAction = page.getByTestId('no-credentials-empty-action');
|
|
18
|
+
this.passwordField = page.getByTestId('passwordField');
|
|
19
|
+
this.passwordConfirmationField = page.getByTestId('passwordConfirmationField');
|
|
12
20
|
}
|
|
13
21
|
async toBeVisible() {
|
|
14
22
|
await (0, test_1.expect)(this.keycloakBanner).toBeVisible({ timeout: 10000 });
|
|
@@ -46,10 +54,14 @@ class KeycloakAdminPage {
|
|
|
46
54
|
await this.page.getByTestId('user-creation-save').click();
|
|
47
55
|
}
|
|
48
56
|
async fillPassword(password) {
|
|
49
|
-
await this.
|
|
50
|
-
await this.
|
|
51
|
-
await this.
|
|
52
|
-
await this.
|
|
57
|
+
await (0, test_1.expect)(this.credentialsTab).toBeVisible();
|
|
58
|
+
await this.credentialsTab.click();
|
|
59
|
+
await (0, test_1.expect)(this.noCredentialsEmptyAction).toBeVisible();
|
|
60
|
+
await this.noCredentialsEmptyAction.click();
|
|
61
|
+
await (0, test_1.expect)(this.passwordField).toBeVisible();
|
|
62
|
+
await this.passwordField.fill(password);
|
|
63
|
+
await (0, test_1.expect)(this.passwordConfirmationField).toBeVisible();
|
|
64
|
+
await this.passwordConfirmationField.fill(password);
|
|
53
65
|
}
|
|
54
66
|
async savePassword() {
|
|
55
67
|
await this.page
|
|
@@ -236,8 +236,8 @@ class PlayPage {
|
|
|
236
236
|
totalTimeout: 90000,
|
|
237
237
|
visibilityTimeout: 20000,
|
|
238
238
|
postAction: async () => {
|
|
239
|
-
if (await this.retryButton.isVisible()) {
|
|
240
|
-
await this.retryButton.click();
|
|
239
|
+
if (await this.retryButton.first().isVisible()) {
|
|
240
|
+
await this.retryButton.first().click();
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
243
|
});
|
|
@@ -60,6 +60,7 @@ class OperateProcessesPage {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
async uncheckCheckbox(checkbox) {
|
|
63
|
+
await (0, test_1.expect)(checkbox).toBeVisible({ timeout: constants_1._1_SECOND_IN_MS * 10 });
|
|
63
64
|
if (await checkbox.isChecked()) {
|
|
64
65
|
await checkbox.click();
|
|
65
66
|
await (0, test_1.expect)(checkbox).toBeChecked({
|
|
@@ -141,7 +141,7 @@ SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
141
141
|
(0, SM_8_9_1.test)('Conditional Events - Deploy, verify in Operate and verify process in Optimize dashboard @tasklistV2', async ({ page, modelerHomePage, modelerCreatePage, navigationPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeDashboardPage, }) => {
|
|
142
142
|
SM_8_9_1.test.slow();
|
|
143
143
|
const bpmnFileName = 'Conditional_Events_All.bpmn';
|
|
144
|
-
const processName = '
|
|
144
|
+
const processName = 'Conditional_Events' + (await (0, _setup_1.generateRandomStringAsync)(3));
|
|
145
145
|
await SM_8_9_1.test.step('Open Cross Component Test Project and upload BPMN file', async () => {
|
|
146
146
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
147
147
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
@@ -151,6 +151,15 @@ SM_8_9_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
151
151
|
await SM_8_9_1.test.step('Open uploaded BPMN diagram', async () => {
|
|
152
152
|
await (0, sleep_1.sleep)(5000);
|
|
153
153
|
await modelerHomePage.clickProcessDiagram(bpmnFileName.replace('.bpmn', ''));
|
|
154
|
+
await modelerCreatePage.clickDiagramBreadcrumb();
|
|
155
|
+
await modelerCreatePage.clickEditDiagramNameButton();
|
|
156
|
+
await modelerCreatePage.enterDiagramName(processName);
|
|
157
|
+
await modelerCreatePage.clickGeneralPropertiesPanel();
|
|
158
|
+
await modelerCreatePage.clickNameInput();
|
|
159
|
+
await modelerCreatePage.fillNameInput(processName);
|
|
160
|
+
await modelerCreatePage.clickIdInput();
|
|
161
|
+
await modelerCreatePage.fillIdInput(processName);
|
|
162
|
+
await (0, sleep_1.sleep)(10000);
|
|
154
163
|
});
|
|
155
164
|
await SM_8_9_1.test.step('Deploy and run process with variable', async () => {
|
|
156
165
|
const variables = '{"myVar": 8}';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resetSessionAll = exports.resetSession = void 0;
|
|
4
|
+
const sleep_1 = require("./sleep");
|
|
4
5
|
async function resetSession(browser, page) {
|
|
5
6
|
const context = browser.contexts()[0];
|
|
6
7
|
await context.clearCookies();
|
|
8
|
+
await (0, sleep_1.sleep)(2000);
|
|
7
9
|
await page.reload();
|
|
8
10
|
await page.goto('/');
|
|
9
11
|
}
|