@camunda/e2e-test-suite 0.0.39 → 0.0.41
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
|
@@ -79,6 +79,10 @@ For C8Run, a test run can be manually triggered for specific minor versions, for
|
|
|
79
79
|
|
|
80
80
|
## Getting Started
|
|
81
81
|
|
|
82
|
+
### Vault Token
|
|
83
|
+
|
|
84
|
+
To run the tests, you need your personal Vault token. You should normally have access to this token. If not, you’ll need to reach out to IT or Infra teams.
|
|
85
|
+
|
|
82
86
|
1. Clone the repository:
|
|
83
87
|
|
|
84
88
|
```bash
|
|
@@ -116,6 +120,12 @@ For C8Run, a test run can be manually triggered for specific minor versions, for
|
|
|
116
120
|
|
|
117
121
|
The setup script will leave these blank and clearly mark them for manual input.
|
|
118
122
|
|
|
123
|
+
If you do not have immediate Vault access or are otherwise blocked, you can copy the required `.env` values from Keeper:
|
|
124
|
+
|
|
125
|
+
- In Keeper, go to **Shared Engineering All → C8 Cross Component E2E Test Suite Credentials**
|
|
126
|
+
- Copy all provided environment variable values
|
|
127
|
+
- Paste them into your local `.env` file
|
|
128
|
+
|
|
119
129
|
**Setting up your own organization (optional)**
|
|
120
130
|
|
|
121
131
|
Request the creation of an organisation identical to `Automation QA`
|
|
@@ -150,6 +160,27 @@ Within the `Automation QA - Your_Name` organisation, invite the following users:
|
|
|
150
160
|
- `C8_PASSWORD`
|
|
151
161
|
- `C8_PASSWORD_TEST`
|
|
152
162
|
|
|
163
|
+
|
|
164
|
+
## Running Smoke Tests in CI
|
|
165
|
+
|
|
166
|
+
### SaaS On-Demand Generation Creation Smoke
|
|
167
|
+
|
|
168
|
+
To trigger the SaaS smoke tests in CI, use the workflow:
|
|
169
|
+
|
|
170
|
+
[SaaS On-Demand Generation Creation Smoke](https://github.com/camunda/c8-cross-component-e2e-tests/actions/workflows/playwright_saas_manual_generation_creation_smoke.yml)
|
|
171
|
+
|
|
172
|
+
- You’ll be prompted to input the version you want to test for each component.
|
|
173
|
+
- The **minor version** is simply the minor version your PR is targeting.
|
|
174
|
+
- *Example:* If your PR targets `8.9`, then the minor version is `8.9`.
|
|
175
|
+
|
|
176
|
+
### Helm Chart Smoke Tests (Self-Managed)
|
|
177
|
+
|
|
178
|
+
For Helm chart tests (if you want to run only the smoke test), use the workflow:
|
|
179
|
+
|
|
180
|
+
[SM On-Demand Smoke 8.8+](https://github.com/camunda/c8-cross-component-e2e-tests/actions/workflows/playwright_sm_manual_smoke_8_8_plus.yml)
|
|
181
|
+
|
|
182
|
+
- Provide the component images you want to test against as workflow inputs.
|
|
183
|
+
|
|
153
184
|
## Running Tests Locally
|
|
154
185
|
|
|
155
186
|
1. Run Tests in Headless Mode
|
|
@@ -10,7 +10,7 @@ class KeycloakLoginPage {
|
|
|
10
10
|
this.keycloakBanner = page.locator('[class="kc-logo-text"]');
|
|
11
11
|
}
|
|
12
12
|
async toBeVisible() {
|
|
13
|
-
await (0, test_1.expect)(this.keycloakBanner).toBeVisible();
|
|
13
|
+
await (0, test_1.expect)(this.keycloakBanner).toBeVisible({ timeout: 60000 });
|
|
14
14
|
}
|
|
15
15
|
async fillUsername(username) {
|
|
16
16
|
await this.page.fill('#username', username);
|
|
@@ -32,9 +32,8 @@ SM_8_6_1.test.describe.parallel('Smoke Tests', () => {
|
|
|
32
32
|
console.log(`AfterEach end: timeout = ${testInfo.timeout}`);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
(0, SM_8_6_1.test)('Basic Login', async ({
|
|
35
|
+
(0, SM_8_6_1.test)('Basic Login', async ({ identityPage, navigationPage }, testInfo) => {
|
|
36
36
|
console.log(`[${testInfo.title}] Test start: timeout = ${testInfo.timeout}`);
|
|
37
|
-
await context.clearCookies();
|
|
38
37
|
await navigationPage.goToIdentity(1000);
|
|
39
38
|
await (0, test_1.expect)(identityPage.identityBanner).toBeVisible({ timeout: 10000 });
|
|
40
39
|
console.log(`[${testInfo.title}] Test end: timeout = ${testInfo.timeout}`);
|
|
@@ -65,13 +64,12 @@ SM_8_6_1.test.describe.parallel('Smoke Tests', () => {
|
|
|
65
64
|
});
|
|
66
65
|
console.log(`[${testInfo.title}] Test end: timeout = ${testInfo.timeout}`);
|
|
67
66
|
});
|
|
68
|
-
(0, SM_8_6_1.test)('Most Common Flow User Flow With All Apps', async ({ page,
|
|
67
|
+
(0, SM_8_6_1.test)('Most Common Flow User Flow With All Apps', async ({ page, modelerHomePage, navigationPage, modelerCreatePage, operateHomePage, operateProcessesPage, operateProcessInstancePage, optimizeHomePage, optimizeCollectionsPage, optimizeReportPage, taskDetailsPage, taskPanelPage, }, testInfo) => {
|
|
69
68
|
console.log(`[${testInfo.title}] Test start: timeout = ${testInfo.timeout}`);
|
|
70
69
|
const randomName = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
71
70
|
const processName = 'Zeebe_User_Task_Process' + randomName;
|
|
72
71
|
const reportName = await (0, _setup_1.generateRandomStringAsync)(5);
|
|
73
72
|
await SM_8_6_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
74
|
-
await context.clearCookies();
|
|
75
73
|
await navigationPage.goToModeler();
|
|
76
74
|
await modelerHomePage.createCrossComponentProjectFolder();
|
|
77
75
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
@@ -128,12 +126,11 @@ SM_8_6_1.test.describe.parallel('Smoke Tests', () => {
|
|
|
128
126
|
});
|
|
129
127
|
console.log(`[${testInfo.title}] Test end: timeout = ${testInfo.timeout}`);
|
|
130
128
|
});
|
|
131
|
-
(0, SM_8_6_1.test)('Most Common REST Connector User Flow', async ({ page,
|
|
129
|
+
(0, SM_8_6_1.test)('Most Common REST Connector User Flow', async ({ page, operateHomePage, modelerHomePage, modelerCreatePage, connectorSettingsPage, navigationPage, operateProcessesPage, operateProcessInstancePage, connectorMarketplacePage, }, testInfo) => {
|
|
132
130
|
console.log(`[${testInfo.title}] Test start: timeout = ${testInfo.timeout}`);
|
|
133
131
|
const processName = 'REST_Connector_Basic_Auth_Process' +
|
|
134
132
|
(await (0, _setup_1.generateRandomStringAsync)(3));
|
|
135
133
|
await SM_8_6_1.test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
|
|
136
|
-
await context.clearCookies();
|
|
137
134
|
await navigationPage.goToModeler();
|
|
138
135
|
await modelerHomePage.createCrossComponentProjectFolder();
|
|
139
136
|
await modelerHomePage.clickDiagramTypeDropdown();
|