@camunda/e2e-test-suite 0.0.562 → 0.0.564
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.10/ModelerCreatePage.d.ts +1 -1
- package/dist/pages/SM-8.10/ModelerCreatePage.js +26 -14
- package/dist/pages/SM-8.10/UtilitiesPage.d.ts +7 -3
- package/dist/pages/SM-8.10/UtilitiesPage.js +2 -5
- package/dist/pages/SM-8.7/KeycloakAdminPage.d.ts +1 -1
- package/dist/pages/SM-8.7/KeycloakAdminPage.js +23 -9
- package/dist/pages/SM-8.7/KeycloakLoginPage.d.ts +1 -1
- package/dist/pages/SM-8.7/KeycloakLoginPage.js +15 -2
- package/dist/pages/SM-8.8/ModelerCreatePage.d.ts +1 -1
- package/dist/pages/SM-8.8/ModelerCreatePage.js +25 -13
- package/dist/pages/SM-8.8/UtilitiesPage.d.ts +10 -4
- package/dist/pages/SM-8.8/UtilitiesPage.js +2 -5
- package/dist/tests/SM-8.10/connectors-user-flows.spec.js +7 -1
- package/dist/tests/SM-8.10/mt-enabled-user-flows.spec.js +3 -1
- package/dist/tests/SM-8.10/smoke-tests.spec.js +4 -1
- package/dist/tests/SM-8.8/connectors-user-flows.spec.js +11 -3
- package/dist/tests/SM-8.8/mt-enabled-user-flows.spec.js +8 -4
- package/dist/tests/SM-8.8/smoke-tests.spec.js +6 -1
- package/package.json +1 -1
|
@@ -136,7 +136,7 @@ declare class ModelerCreatePage {
|
|
|
136
136
|
clickDeploySubButton(): Promise<void>;
|
|
137
137
|
clickCancelButton(): Promise<void>;
|
|
138
138
|
private recoverModelerSession;
|
|
139
|
-
clickRestConnectorOption(): Promise<void>;
|
|
139
|
+
clickRestConnectorOption(recoverSession?: () => Promise<void>): Promise<void>;
|
|
140
140
|
clickMarketPlaceButton(): Promise<void>;
|
|
141
141
|
completeDeploymentEndpointConfiguration(): Promise<void>;
|
|
142
142
|
completePlayConfiguration(): Promise<void>;
|
|
@@ -615,21 +615,33 @@ class ModelerCreatePage {
|
|
|
615
615
|
async clickCancelButton() {
|
|
616
616
|
await this.cancelButton.click();
|
|
617
617
|
}
|
|
618
|
-
async recoverModelerSession() {
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
await loginInput.fill(username);
|
|
627
|
-
await this.page.locator('#password').fill(password);
|
|
628
|
-
await this.page.locator('#kc-login').click();
|
|
618
|
+
async recoverModelerSession(recoverSession) {
|
|
619
|
+
const rawUrl = this.page.url();
|
|
620
|
+
let url;
|
|
621
|
+
if (rawUrl.includes('client_id=web-modeler')) {
|
|
622
|
+
const match = rawUrl.match(/redirect_uri=([^&]+)/);
|
|
623
|
+
url = match
|
|
624
|
+
? decodeURIComponent(match[1]).split('?')[0]
|
|
625
|
+
: rawUrl.split('?')[0];
|
|
629
626
|
}
|
|
627
|
+
else {
|
|
628
|
+
url = rawUrl.split('?')[0];
|
|
629
|
+
}
|
|
630
|
+
if (recoverSession) {
|
|
631
|
+
// Caller-provided function handles auth + navigation (e.g. navigationPage.goToModeler).
|
|
632
|
+
// It retries internally; after it returns the session is valid on Modeler home.
|
|
633
|
+
await recoverSession();
|
|
634
|
+
}
|
|
635
|
+
// Navigate to the diagram URL directly — goToModeler lands on Modeler home, and
|
|
636
|
+
// after a pod restart Modeler also loses OIDC state and redirects home, so we go
|
|
637
|
+
// to the diagram explicitly while the session is valid.
|
|
638
|
+
await this.page.goto(url, {
|
|
639
|
+
timeout: 30000,
|
|
640
|
+
waitUntil: 'domcontentloaded',
|
|
641
|
+
});
|
|
630
642
|
await (0, test_1.expect)(this.secondElement).toBeVisible({ timeout: 60000 });
|
|
631
643
|
}
|
|
632
|
-
async clickRestConnectorOption() {
|
|
644
|
+
async clickRestConnectorOption(recoverSession) {
|
|
633
645
|
const maxRetries = 4;
|
|
634
646
|
for (let retries = 0; retries < maxRetries; retries++) {
|
|
635
647
|
try {
|
|
@@ -640,7 +652,7 @@ class ModelerCreatePage {
|
|
|
640
652
|
}
|
|
641
653
|
else if (retries === 1 || retries === 2) {
|
|
642
654
|
// Recover session cleanly instead of page.reload()
|
|
643
|
-
await this.recoverModelerSession();
|
|
655
|
+
await this.recoverModelerSession(recoverSession);
|
|
644
656
|
await this.secondElement.click({ timeout: 60000 });
|
|
645
657
|
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
646
658
|
await (0, test_1.expect)(this.restConnectorOption).toBeVisible({ timeout: 90000 });
|
|
@@ -648,7 +660,7 @@ class ModelerCreatePage {
|
|
|
648
660
|
}
|
|
649
661
|
else {
|
|
650
662
|
// Fourth attempt: install via marketplace (real product flow)
|
|
651
|
-
await this.recoverModelerSession();
|
|
663
|
+
await this.recoverModelerSession(recoverSession);
|
|
652
664
|
await this.secondElement.click({ timeout: 60000 });
|
|
653
665
|
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
654
666
|
await this.clickMarketPlaceButton();
|
|
@@ -20,9 +20,13 @@ export declare function createUserAndAssignToRole(page: Page, navigationPage: Na
|
|
|
20
20
|
export declare function assignMappingToRole(page: Page, ocIdentityHomePage: OCIdentityHomePage, ocIdentityRolesPage: OCIdentityRolesPage, role: string, mappingRuleId: string, testMappings?: Serializable): Promise<void>;
|
|
21
21
|
export declare function createAndRunProcess(page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, processId?: string, tenant?: string): Promise<void>;
|
|
22
22
|
export declare function completeTaskWithRetry(page: Page, taskPanelPage: TaskPanelPage, taskDetailsPage: TaskDetailsPage, taskName: string, taskPriority: string, maxRetries?: number): Promise<void>;
|
|
23
|
-
export declare function modelRestConnector(modelerCreatePage: ModelerCreatePage, connectorSettingsPage: ConnectorSettingsPage, connectorMarketplacePage: ConnectorMarketplacePage, processName: string, url: string, auth: string, resultExpression: string, resultVariable
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
export declare function modelRestConnector(modelerCreatePage: ModelerCreatePage, connectorSettingsPage: ConnectorSettingsPage, connectorMarketplacePage: ConnectorMarketplacePage, processName: string, url: string, auth: string, resultExpression: string, { resultVariable, basicAuthCredentials, recoverSession, }?: {
|
|
24
|
+
resultVariable?: string;
|
|
25
|
+
basicAuthCredentials?: {
|
|
26
|
+
username: string;
|
|
27
|
+
password: string;
|
|
28
|
+
};
|
|
29
|
+
recoverSession?: () => Promise<void>;
|
|
26
30
|
}): Promise<void>;
|
|
27
31
|
export declare function assertLocatorVisibleWithPaginated(page: Page, locator: Locator, text: string): Promise<void>;
|
|
28
32
|
export declare function assertLocatorVisibleWithRetry(page: Page, locator: Locator, text: string, timeout?: number, notVisible?: boolean, maxRetries?: number, clickLocator?: Locator): Promise<void>;
|
|
@@ -139,10 +139,7 @@ async function completeTaskWithRetry(page, taskPanelPage, taskDetailsPage, taskN
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
exports.completeTaskWithRetry = completeTaskWithRetry;
|
|
142
|
-
async function modelRestConnector(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, url, auth, resultExpression, resultVariable = '', basicAuthCredentials = {
|
|
143
|
-
username: '',
|
|
144
|
-
password: '',
|
|
145
|
-
}) {
|
|
142
|
+
async function modelRestConnector(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, url, auth, resultExpression, { resultVariable = '', basicAuthCredentials = { username: '', password: '' }, recoverSession, } = {}) {
|
|
146
143
|
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
147
144
|
timeout: 120000,
|
|
148
145
|
});
|
|
@@ -178,7 +175,7 @@ async function modelRestConnector(modelerCreatePage, connectorSettingsPage, conn
|
|
|
178
175
|
await connectorMarketplacePage.waitForConnectorSearchResults();
|
|
179
176
|
await connectorMarketplacePage.downloadConnectorToProject();
|
|
180
177
|
}
|
|
181
|
-
await modelerCreatePage.clickRestConnectorOption();
|
|
178
|
+
await modelerCreatePage.clickRestConnectorOption(recoverSession);
|
|
182
179
|
await connectorSettingsPage.clickAuthenticationTab();
|
|
183
180
|
await connectorSettingsPage.clickHTTPEndpointTab();
|
|
184
181
|
if (auth == 'bearer') {
|
|
@@ -13,7 +13,7 @@ declare class KeycloakAdminPage {
|
|
|
13
13
|
clickAddUser(): Promise<void>;
|
|
14
14
|
fillUser(username: string): Promise<void>;
|
|
15
15
|
saveUser(): Promise<void>;
|
|
16
|
-
fillPassword(password: string): Promise<void>;
|
|
16
|
+
fillPassword(password: string, maxRetries?: number): Promise<void>;
|
|
17
17
|
savePassword(): Promise<void>;
|
|
18
18
|
}
|
|
19
19
|
export { KeycloakAdminPage };
|
|
@@ -69,15 +69,29 @@ class KeycloakAdminPage {
|
|
|
69
69
|
async saveUser() {
|
|
70
70
|
await this.page.getByTestId('user-creation-save').click();
|
|
71
71
|
}
|
|
72
|
-
async fillPassword(password) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
async fillPassword(password, maxRetries = 3) {
|
|
73
|
+
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
74
|
+
try {
|
|
75
|
+
await (0, test_1.expect)(this.credentialsTab).toBeVisible();
|
|
76
|
+
await this.credentialsTab.click();
|
|
77
|
+
await (0, test_1.expect)(this.noCredentialsEmptyAction).toBeVisible({
|
|
78
|
+
timeout: 60000,
|
|
79
|
+
});
|
|
80
|
+
await this.noCredentialsEmptyAction.click();
|
|
81
|
+
await (0, test_1.expect)(this.passwordField).toBeVisible();
|
|
82
|
+
await this.passwordField.fill(password);
|
|
83
|
+
await (0, test_1.expect)(this.passwordConfirmationField).toBeVisible();
|
|
84
|
+
await this.passwordConfirmationField.fill(password);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
if (attempt === maxRetries) {
|
|
89
|
+
throw new Error(`fillPassword failed after ${maxRetries} attempts: ${error}`);
|
|
90
|
+
}
|
|
91
|
+
console.warn(`fillPassword attempt ${attempt} failed: ${error}. Retrying...`);
|
|
92
|
+
await (0, sleep_1.sleep)(3000);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
81
95
|
}
|
|
82
96
|
async savePassword() {
|
|
83
97
|
await this.page
|
|
@@ -5,7 +5,7 @@ declare class KeycloakLoginPage {
|
|
|
5
5
|
constructor(page: Page);
|
|
6
6
|
toBeVisible(): Promise<void>;
|
|
7
7
|
fillUsername(username: string): Promise<void>;
|
|
8
|
-
fillPassword(password: string): Promise<void>;
|
|
8
|
+
fillPassword(password: string, maxRetries?: number): Promise<void>;
|
|
9
9
|
clickLogin(): Promise<void>;
|
|
10
10
|
}
|
|
11
11
|
export { KeycloakLoginPage };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KeycloakLoginPage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
|
+
const sleep_1 = require("../../utils/sleep");
|
|
5
6
|
class KeycloakLoginPage {
|
|
6
7
|
page;
|
|
7
8
|
keycloakBanner;
|
|
@@ -15,8 +16,20 @@ class KeycloakLoginPage {
|
|
|
15
16
|
async fillUsername(username) {
|
|
16
17
|
await this.page.fill('#username', username);
|
|
17
18
|
}
|
|
18
|
-
async fillPassword(password) {
|
|
19
|
-
|
|
19
|
+
async fillPassword(password, maxRetries = 3) {
|
|
20
|
+
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
21
|
+
try {
|
|
22
|
+
await this.page.fill('#password', password);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
if (attempt === maxRetries) {
|
|
27
|
+
throw new Error(`fillPassword failed after ${maxRetries} attempts: ${error}`);
|
|
28
|
+
}
|
|
29
|
+
console.warn(`fillPassword attempt ${attempt} failed: ${error}. Retrying...`);
|
|
30
|
+
await (0, sleep_1.sleep)(3000);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
20
33
|
}
|
|
21
34
|
async clickLogin() {
|
|
22
35
|
await this.page.click('button[type="submit"]');
|
|
@@ -137,7 +137,7 @@ declare class ModelerCreatePage {
|
|
|
137
137
|
clickDeploySubButton(): Promise<void>;
|
|
138
138
|
clickCancelButton(): Promise<void>;
|
|
139
139
|
private recoverModelerSession;
|
|
140
|
-
clickRestConnectorOption(): Promise<void>;
|
|
140
|
+
clickRestConnectorOption(recoverSession?: () => Promise<void>): Promise<void>;
|
|
141
141
|
clickMarketPlaceButton(): Promise<void>;
|
|
142
142
|
completeDeploymentEndpointConfiguration(): Promise<void>;
|
|
143
143
|
completePlayConfiguration(): Promise<void>;
|
|
@@ -629,21 +629,33 @@ class ModelerCreatePage {
|
|
|
629
629
|
async clickCancelButton() {
|
|
630
630
|
await this.cancelButton.click();
|
|
631
631
|
}
|
|
632
|
-
async recoverModelerSession() {
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
await loginInput.fill(username);
|
|
641
|
-
await this.page.locator('#password').fill(password);
|
|
642
|
-
await this.page.locator('#kc-login').click();
|
|
632
|
+
async recoverModelerSession(recoverSession) {
|
|
633
|
+
const rawUrl = this.page.url();
|
|
634
|
+
let url;
|
|
635
|
+
if (rawUrl.includes('client_id=web-modeler')) {
|
|
636
|
+
const match = rawUrl.match(/redirect_uri=([^&]+)/);
|
|
637
|
+
url = match
|
|
638
|
+
? decodeURIComponent(match[1]).split('?')[0]
|
|
639
|
+
: rawUrl.split('?')[0];
|
|
643
640
|
}
|
|
641
|
+
else {
|
|
642
|
+
url = rawUrl.split('?')[0];
|
|
643
|
+
}
|
|
644
|
+
if (recoverSession) {
|
|
645
|
+
// Caller-provided function handles auth + navigation (e.g. navigationPage.goToModeler).
|
|
646
|
+
// It retries internally; after it returns the session is valid on Modeler home.
|
|
647
|
+
await recoverSession();
|
|
648
|
+
}
|
|
649
|
+
// Navigate to the diagram URL directly — goToModeler lands on Modeler home, and
|
|
650
|
+
// after a pod restart Modeler also loses OIDC state and redirects home, so we go
|
|
651
|
+
// to the diagram explicitly while the session is valid.
|
|
652
|
+
await this.page.goto(url, {
|
|
653
|
+
timeout: 30000,
|
|
654
|
+
waitUntil: 'domcontentloaded',
|
|
655
|
+
});
|
|
644
656
|
await (0, test_1.expect)(this.secondElement).toBeVisible({ timeout: 60000 });
|
|
645
657
|
}
|
|
646
|
-
async clickRestConnectorOption() {
|
|
658
|
+
async clickRestConnectorOption(recoverSession) {
|
|
647
659
|
const maxRetries = 4;
|
|
648
660
|
for (let retries = 0; retries < maxRetries; retries++) {
|
|
649
661
|
try {
|
|
@@ -654,7 +666,7 @@ class ModelerCreatePage {
|
|
|
654
666
|
}
|
|
655
667
|
else {
|
|
656
668
|
// Recover session cleanly instead of page.reload()
|
|
657
|
-
await this.recoverModelerSession();
|
|
669
|
+
await this.recoverModelerSession(recoverSession);
|
|
658
670
|
await this.secondElement.click({ force: true, timeout: 60000 });
|
|
659
671
|
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
660
672
|
await (0, test_1.expect)(this.restConnectorOption).toBeVisible({ timeout: 90000 });
|
|
@@ -20,10 +20,16 @@ export declare function createUserAndAssignToRole(page: Page, navigationPage: Na
|
|
|
20
20
|
export declare function assignMappingToRole(page: Page, ocIdentityHomePage: OCIdentityHomePage, ocIdentityRolesPage: OCIdentityRolesPage, role: string, mappingRuleId: string, testMappings?: Serializable): Promise<void>;
|
|
21
21
|
export declare function createAndRunProcess(page: Page, modelerHomePage: ModelerHomePage, modelerCreatePage: ModelerCreatePage, processName: string, processId?: string): Promise<void>;
|
|
22
22
|
export declare function completeTaskWithRetry(page: Page, taskPanelPage: TaskPanelPage, taskDetailsPage: TaskDetailsPage, taskName: string, taskPriority: string): Promise<void>;
|
|
23
|
-
export declare function modelRestConnector(modelerCreatePage: ModelerCreatePage, connectorSettingsPage: ConnectorSettingsPage, connectorMarketplacePage: ConnectorMarketplacePage, processName: string, url: string, auth: string, resultExpression: string, resultVariable
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
export declare function modelRestConnector(modelerCreatePage: ModelerCreatePage, connectorSettingsPage: ConnectorSettingsPage, connectorMarketplacePage: ConnectorMarketplacePage, processName: string, url: string, auth: string, resultExpression: string, { resultVariable, basicAuthCredentials, page, modelerHomePage, recoverSession, }?: {
|
|
24
|
+
resultVariable?: string;
|
|
25
|
+
basicAuthCredentials?: {
|
|
26
|
+
username: string;
|
|
27
|
+
password: string;
|
|
28
|
+
};
|
|
29
|
+
page?: Page;
|
|
30
|
+
modelerHomePage?: ModelerHomePage;
|
|
31
|
+
recoverSession?: () => Promise<void>;
|
|
32
|
+
}): Promise<void>;
|
|
27
33
|
export declare function assertLocatorVisibleWithPaginated(page: Page, locator: Locator, text: string): Promise<void>;
|
|
28
34
|
export declare function assertLocatorVisibleWithRetry(page: Page, locator: Locator, text: string, timeout?: number, notVisible?: boolean, maxRetries?: number, clickLocator?: Locator): Promise<void>;
|
|
29
35
|
export declare function assertPageTextWithRetry(page: Page, text: string, notVisible?: boolean, timeout?: number, maxRetries?: number): Promise<void>;
|
|
@@ -112,10 +112,7 @@ async function completeTaskWithRetry(page, taskPanelPage, taskDetailsPage, taskN
|
|
|
112
112
|
throw new Error(`Completion of task ${taskName} failed after ${attempt} attempts (${TOTAL_TIMEOUT_MS / 1000}s timeout)`);
|
|
113
113
|
}
|
|
114
114
|
exports.completeTaskWithRetry = completeTaskWithRetry;
|
|
115
|
-
async function modelRestConnector(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, url, auth, resultExpression, resultVariable = '', basicAuthCredentials = {
|
|
116
|
-
username: '',
|
|
117
|
-
password: '',
|
|
118
|
-
}, page, modelerHomePage) {
|
|
115
|
+
async function modelRestConnector(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, url, auth, resultExpression, { resultVariable = '', basicAuthCredentials = { username: '', password: '' }, page, modelerHomePage, recoverSession, } = {}) {
|
|
119
116
|
await (0, test_1.expect)(modelerCreatePage.generalPanel).toBeVisible({
|
|
120
117
|
timeout: 120000,
|
|
121
118
|
});
|
|
@@ -179,7 +176,7 @@ async function modelRestConnector(modelerCreatePage, connectorSettingsPage, conn
|
|
|
179
176
|
}
|
|
180
177
|
}
|
|
181
178
|
}
|
|
182
|
-
await modelerCreatePage.clickRestConnectorOption();
|
|
179
|
+
await modelerCreatePage.clickRestConnectorOption(recoverSession);
|
|
183
180
|
await connectorSettingsPage.clickAuthenticationTab();
|
|
184
181
|
await connectorSettingsPage.clickHTTPEndpointTab();
|
|
185
182
|
if (auth == 'bearer') {
|
|
@@ -143,7 +143,13 @@ SM_8_10_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
143
143
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
144
144
|
});
|
|
145
145
|
await SM_8_10_1.test.step('Create BPMN Diagram with REST Connector using secrets and Start Process Instance', async () => {
|
|
146
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}',
|
|
146
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', {
|
|
147
|
+
resultVariable: 'result',
|
|
148
|
+
basicAuthCredentials: {
|
|
149
|
+
username: '{{secrets.username}}',
|
|
150
|
+
password: '{{secrets.password}}',
|
|
151
|
+
},
|
|
152
|
+
});
|
|
147
153
|
await modelerCreatePage.runProcessInstance('', mtTenant);
|
|
148
154
|
await (0, sleep_1.sleep)(20000);
|
|
149
155
|
});
|
|
@@ -301,7 +301,9 @@ if (process.env.IS_MT === 'true') {
|
|
|
301
301
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
302
302
|
});
|
|
303
303
|
await SM_8_10_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
|
|
304
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body'
|
|
304
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', {
|
|
305
|
+
recoverSession: () => navigationPage.goToModeler(undefined, credentials),
|
|
306
|
+
});
|
|
305
307
|
await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
|
|
306
308
|
});
|
|
307
309
|
await SM_8_10_1.test.step('View Process Instance in Operate & assert process is complete', async () => {
|
|
@@ -142,7 +142,10 @@ SM_8_10_1.test.describe.parallel('Smoke Tests', () => {
|
|
|
142
142
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
143
143
|
});
|
|
144
144
|
await SM_8_10_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
|
|
145
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}',
|
|
145
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', {
|
|
146
|
+
resultVariable: 'result',
|
|
147
|
+
basicAuthCredentials: { username: 'username', password: 'password' },
|
|
148
|
+
});
|
|
146
149
|
await modelerCreatePage.runProcessInstance();
|
|
147
150
|
});
|
|
148
151
|
await SM_8_10_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
|
|
@@ -24,7 +24,7 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
24
24
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
25
25
|
});
|
|
26
26
|
await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector and Start Process Instance', async () => {
|
|
27
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body',
|
|
27
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
|
|
28
28
|
await modelerCreatePage.runProcessInstance();
|
|
29
29
|
await (0, sleep_1.sleep)(20000);
|
|
30
30
|
});
|
|
@@ -54,7 +54,7 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
54
54
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
55
55
|
});
|
|
56
56
|
await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
|
|
57
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'bearer', '{message:response.body.status}',
|
|
57
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'bearer', '{message:response.body.status}', { page, modelerHomePage });
|
|
58
58
|
await modelerCreatePage.runProcessInstance();
|
|
59
59
|
await (0, _setup_1.performBearerTokenAuthPostRequest)('https://camunda.proxy.beeceptor.com/pre-prod/bearer-auth-test', 'thisisabearertoken');
|
|
60
60
|
await (0, sleep_1.sleep)(20000);
|
|
@@ -145,7 +145,15 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
145
145
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
146
146
|
});
|
|
147
147
|
await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector using secrets and Start Process Instance', async () => {
|
|
148
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}',
|
|
148
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', {
|
|
149
|
+
resultVariable: 'result',
|
|
150
|
+
basicAuthCredentials: {
|
|
151
|
+
username: '{{secrets.username}}',
|
|
152
|
+
password: '{{secrets.password}}',
|
|
153
|
+
},
|
|
154
|
+
page,
|
|
155
|
+
modelerHomePage,
|
|
156
|
+
});
|
|
149
157
|
await modelerCreatePage.runProcessInstance();
|
|
150
158
|
await (0, sleep_1.sleep)(20000);
|
|
151
159
|
});
|
|
@@ -157,7 +157,7 @@ if (process.env.IS_MT === 'true') {
|
|
|
157
157
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
158
158
|
});
|
|
159
159
|
await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
|
|
160
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body',
|
|
160
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
|
|
161
161
|
await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
|
|
162
162
|
});
|
|
163
163
|
await SM_8_8_1.test.step('View Process Instance in Operate & assert process is complete', async () => {
|
|
@@ -302,7 +302,11 @@ if (process.env.IS_MT === 'true') {
|
|
|
302
302
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
303
303
|
});
|
|
304
304
|
await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance', async () => {
|
|
305
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body',
|
|
305
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', {
|
|
306
|
+
page,
|
|
307
|
+
modelerHomePage,
|
|
308
|
+
recoverSession: () => navigationPage.goToModeler(undefined, credentials),
|
|
309
|
+
});
|
|
306
310
|
await modelerCreatePage.runProcessInstance('', tenantName); //Identity bug https://github.com/camunda/camunda/issues/35834
|
|
307
311
|
});
|
|
308
312
|
await SM_8_8_1.test.step('View Process Instance in Operate & assert process is complete', async () => {
|
|
@@ -436,14 +440,14 @@ if (process.env.IS_MT === 'true') {
|
|
|
436
440
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
437
441
|
});
|
|
438
442
|
await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 1', async () => {
|
|
439
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body',
|
|
443
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName1, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
|
|
440
444
|
await modelerCreatePage.runProcessInstance('', tenantName1); //Identity bug https://github.com/camunda/camunda/issues/35834
|
|
441
445
|
});
|
|
442
446
|
await SM_8_8_1.test.step('Create A Diagram with a REST Connector and Start Process Instance With Tenant 2', async () => {
|
|
443
447
|
await modelerHomePage.clickProjectBreadcrumb();
|
|
444
448
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
445
449
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
446
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body',
|
|
450
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName2, 'https://camunda.proxy.beeceptor.com/pre-prod/no-auth-test', 'noAuth', 'body', { page, modelerHomePage });
|
|
447
451
|
await modelerCreatePage.runProcessInstance('', tenantName2);
|
|
448
452
|
});
|
|
449
453
|
await SM_8_8_1.test.step('View Process Instances in Operate, and Assert Process Complete in Operate with Correct Tenant', async () => {
|
|
@@ -147,7 +147,12 @@ SM_8_8_1.test.describe.parallel('Smoke Tests', () => {
|
|
|
147
147
|
await modelerHomePage.clickBpmnTemplateOption();
|
|
148
148
|
});
|
|
149
149
|
await SM_8_8_1.test.step('Create BPMN Diagram with REST Connector with Basic Auth and Start Process Instance', async () => {
|
|
150
|
-
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}',
|
|
150
|
+
await (0, UtilitiesPage_1.modelRestConnector)(modelerCreatePage, connectorSettingsPage, connectorMarketplacePage, processName, 'https://camunda.proxy.beeceptor.com/pre-prod/basic-auth-test', 'basic', '{message:response.body.message}', {
|
|
151
|
+
resultVariable: 'result',
|
|
152
|
+
basicAuthCredentials: { username: 'username', password: 'password' },
|
|
153
|
+
page,
|
|
154
|
+
modelerHomePage,
|
|
155
|
+
});
|
|
151
156
|
await modelerCreatePage.runProcessInstance();
|
|
152
157
|
});
|
|
153
158
|
await SM_8_8_1.test.step('View Process Instance in Operate, assert it completes and assert result expression', async () => {
|