@camunda/e2e-test-suite 0.0.503 → 0.0.505
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/README.md
CHANGED
|
@@ -99,6 +99,12 @@ For C8Run, a test run can be manually triggered for specific minor versions, for
|
|
|
99
99
|
- [C8Run On-Demand with macOS GitHub Action](https://github.com/camunda/c8-cross-component-e2e-tests/actions/workflows/playwright_c8Run_tests_manual_mac.yml)
|
|
100
100
|
- [C8Run On-Demand with Windows GitHub Action](https://github.com/camunda/c8-cross-component-e2e-tests/actions/workflows/playwright_c8Run_tests_manual_windows.yml)
|
|
101
101
|
|
|
102
|
+
#### Flakiness Fix Agent
|
|
103
|
+
|
|
104
|
+
Found a flaky test? The [Flakiness Fix Agent](https://github.com/camunda/c8-cross-component-e2e-tests/actions/workflows/playwright_flakiness_fix.yml) is a single workflow that works across all three platforms (SaaS, SM, C8Run). It runs the target test 100× against the real integration environment, sends any failures to Claude for analysis, applies fixes, and iterates until it reaches 100% pass rate — then opens a PR for you to review.
|
|
105
|
+
|
|
106
|
+
> Provide the test file path (e.g. `tests/8.10/smoke-tests.spec.ts`) and the platform is auto-detected from the path. See the [Flakiness Fix Agent section in AGENTS.md](./AGENTS.md#flakiness-fix-agent) for full usage details and how to prepare SM credentials.
|
|
107
|
+
|
|
102
108
|
## Prerequisites
|
|
103
109
|
|
|
104
110
|
1. Before running the test suite, make sure you have the following prerequisites installed:
|
|
@@ -48,7 +48,11 @@ class KeycloakAdminPage {
|
|
|
48
48
|
await this.page.getByTestId('user-creation-save').click();
|
|
49
49
|
}
|
|
50
50
|
async fillPassword(password) {
|
|
51
|
+
await (0, test_1.expect)(this.page.getByTestId('credentials')).toBeVisible({
|
|
52
|
+
timeout: 30000,
|
|
53
|
+
});
|
|
51
54
|
await this.page.getByTestId('credentials').click();
|
|
55
|
+
await (0, test_1.expect)(this.page.getByTestId('no-credentials-empty-action')).toBeVisible({ timeout: 30000 });
|
|
52
56
|
await this.page.getByTestId('no-credentials-empty-action').click();
|
|
53
57
|
await this.page.getByTestId('passwordField').fill(password);
|
|
54
58
|
await this.page.getByTestId('passwordConfirmationField').fill(password);
|
|
@@ -32,6 +32,8 @@ declare class ModelerCreatePage {
|
|
|
32
32
|
readonly clientIdTextbox: Locator;
|
|
33
33
|
readonly clientSecretTextbox: Locator;
|
|
34
34
|
readonly rememberCredentialsCheckbox: Locator;
|
|
35
|
+
readonly deployDialogUsernameInput: Locator;
|
|
36
|
+
readonly deployDialogPasswordInput: Locator;
|
|
35
37
|
readonly webhookMessageStartEventConnectorOption: Locator;
|
|
36
38
|
readonly webhookIdInput: Locator;
|
|
37
39
|
readonly implementationSection: Locator;
|
|
@@ -37,6 +37,8 @@ class ModelerCreatePage {
|
|
|
37
37
|
clientIdTextbox;
|
|
38
38
|
clientSecretTextbox;
|
|
39
39
|
rememberCredentialsCheckbox;
|
|
40
|
+
deployDialogUsernameInput;
|
|
41
|
+
deployDialogPasswordInput;
|
|
40
42
|
webhookMessageStartEventConnectorOption;
|
|
41
43
|
webhookIdInput;
|
|
42
44
|
implementationSection;
|
|
@@ -123,10 +125,12 @@ class ModelerCreatePage {
|
|
|
123
125
|
name: 'Deploy & run',
|
|
124
126
|
exact: true,
|
|
125
127
|
});
|
|
126
|
-
this.deployAndRunSubButton = this.dialog
|
|
128
|
+
this.deployAndRunSubButton = this.dialog
|
|
129
|
+
.getByRole('button', {
|
|
127
130
|
name: 'Deploy & run',
|
|
128
131
|
exact: true,
|
|
129
|
-
})
|
|
132
|
+
})
|
|
133
|
+
.last();
|
|
130
134
|
this.viewProcessInstanceLink = page.getByRole('link', {
|
|
131
135
|
name: 'View process instance',
|
|
132
136
|
});
|
|
@@ -151,6 +155,12 @@ class ModelerCreatePage {
|
|
|
151
155
|
this.clientIdTextbox = page.getByLabel('Client ID');
|
|
152
156
|
this.clientSecretTextbox = page.getByLabel('Client secret');
|
|
153
157
|
this.rememberCredentialsCheckbox = page.getByText('Remember credentials');
|
|
158
|
+
this.deployDialogUsernameInput = page
|
|
159
|
+
.getByRole('dialog')
|
|
160
|
+
.getByLabel('Username');
|
|
161
|
+
this.deployDialogPasswordInput = page
|
|
162
|
+
.getByRole('dialog')
|
|
163
|
+
.getByLabel('Password');
|
|
154
164
|
this.webhookMessageStartEventConnectorOption = page.getByRole('listitem', {
|
|
155
165
|
name: 'Webhook Message Start Event Connector',
|
|
156
166
|
exact: true,
|
|
@@ -339,6 +349,24 @@ class ModelerCreatePage {
|
|
|
339
349
|
await (0, test_1.expect)(this.dialog).toBeVisible({
|
|
340
350
|
timeout: 30000,
|
|
341
351
|
});
|
|
352
|
+
// Fill credentials if the dialog requires them (first run on a fresh
|
|
353
|
+
// cluster). Two auth modes are possible depending on cluster setup:
|
|
354
|
+
// - OAuth2: "Client ID" + "Client secret" fields
|
|
355
|
+
// - Basic / username-password: "Username" + "Password" fields
|
|
356
|
+
const clientIdVisible = await this.clientIdTextbox.isVisible();
|
|
357
|
+
const usernameVisible = await this.deployDialogUsernameInput.isVisible();
|
|
358
|
+
if (clientIdVisible) {
|
|
359
|
+
await this.completeDeploymentEndpointConfiguration();
|
|
360
|
+
}
|
|
361
|
+
else if (usernameVisible) {
|
|
362
|
+
await this.deployDialogUsernameInput.fill(process.env.DEMO_USER_EMAIL || 'demo');
|
|
363
|
+
await this.deployDialogPasswordInput.fill(process.env.DISTRO_QA_E2E_TESTS_IDENTITY_FIRSTUSER_PASSWORD || '');
|
|
364
|
+
// "Remember credentials" checkbox may not be present in all SM setups
|
|
365
|
+
const rememberVisible = await this.rememberCredentialsCheckbox.isVisible();
|
|
366
|
+
if (rememberVisible) {
|
|
367
|
+
await this.rememberCredentialsCheckbox.click({ timeout: 30000 });
|
|
368
|
+
}
|
|
369
|
+
}
|
|
342
370
|
if (variables.length > 0) {
|
|
343
371
|
await (0, test_1.expect)(this.variableInput).toBeVisible({
|
|
344
372
|
timeout: 60000,
|
|
@@ -356,12 +384,12 @@ class ModelerCreatePage {
|
|
|
356
384
|
}
|
|
357
385
|
catch (error) {
|
|
358
386
|
if (attempt < maxRetries - 1) {
|
|
359
|
-
console.warn(`Attempt ${attempt + 1} failed for deploy & run
|
|
387
|
+
console.warn(`Attempt ${attempt + 1} failed for deploy & run: ${error}. Retrying...`);
|
|
360
388
|
await this.page.reload();
|
|
361
389
|
await (0, sleep_1.sleep)(10000);
|
|
362
390
|
}
|
|
363
391
|
else {
|
|
364
|
-
throw new Error(`Assertion failed after ${maxRetries} attempts`);
|
|
392
|
+
throw new Error(`Assertion failed after ${maxRetries} attempts: ${error}`);
|
|
365
393
|
}
|
|
366
394
|
}
|
|
367
395
|
}
|
|
@@ -732,7 +760,7 @@ class ModelerCreatePage {
|
|
|
732
760
|
}
|
|
733
761
|
async instanceStartedAssertion() {
|
|
734
762
|
await (0, test_1.expect)(this.page.getByText('Instance started!')).toBeVisible({
|
|
735
|
-
timeout:
|
|
763
|
+
timeout: 60000,
|
|
736
764
|
});
|
|
737
765
|
}
|
|
738
766
|
async assertImplementationOption(implementationType) {
|