@camunda/e2e-test-suite 0.0.940 → 0.0.942
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.
|
@@ -4,11 +4,13 @@ declare class TaskListLoginPage {
|
|
|
4
4
|
readonly usernameInput: Locator;
|
|
5
5
|
readonly passwordInput: Locator;
|
|
6
6
|
readonly loginButton: Locator;
|
|
7
|
+
readonly taskListPageBanner: Locator;
|
|
7
8
|
constructor(page: Page);
|
|
8
9
|
fillUsername(username: string): Promise<void>;
|
|
9
10
|
clickUsername(): Promise<void>;
|
|
10
11
|
fillPassword(password: string): Promise<void>;
|
|
11
12
|
clickLoginButton(): Promise<void>;
|
|
13
|
+
isLoggedIn(): Promise<boolean>;
|
|
12
14
|
login(username: string, password: string): Promise<void>;
|
|
13
15
|
}
|
|
14
16
|
export { TaskListLoginPage };
|
|
@@ -7,11 +7,15 @@ class TaskListLoginPage {
|
|
|
7
7
|
usernameInput;
|
|
8
8
|
passwordInput;
|
|
9
9
|
loginButton;
|
|
10
|
+
taskListPageBanner;
|
|
10
11
|
constructor(page) {
|
|
11
12
|
this.page = page;
|
|
12
13
|
this.usernameInput = page.getByLabel('Username');
|
|
13
14
|
this.passwordInput = page.getByRole('textbox', { name: 'password' });
|
|
14
15
|
this.loginButton = page.getByRole('button', { name: 'Login' });
|
|
16
|
+
this.taskListPageBanner = page.getByRole('link', {
|
|
17
|
+
name: 'Camunda logo Tasklist',
|
|
18
|
+
});
|
|
15
19
|
}
|
|
16
20
|
async fillUsername(username) {
|
|
17
21
|
await this.usernameInput.fill(username);
|
|
@@ -25,8 +29,16 @@ class TaskListLoginPage {
|
|
|
25
29
|
async clickLoginButton() {
|
|
26
30
|
await this.loginButton.click({ timeout: 60000 });
|
|
27
31
|
}
|
|
32
|
+
async isLoggedIn() {
|
|
33
|
+
// /tasklist/login redirects an already-authenticated user straight to
|
|
34
|
+
// /tasklist, so the form never renders on a re-login within a session.
|
|
35
|
+
await (0, test_1.expect)(this.usernameInput.or(this.taskListPageBanner).first()).toBeVisible({ timeout: 180000 });
|
|
36
|
+
return this.taskListPageBanner.isVisible();
|
|
37
|
+
}
|
|
28
38
|
async login(username, password) {
|
|
29
|
-
|
|
39
|
+
if (await this.isLoggedIn()) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
30
42
|
await this.clickUsername();
|
|
31
43
|
await this.fillUsername(username);
|
|
32
44
|
await this.fillPassword(password);
|
|
@@ -129,7 +129,8 @@ _8_10_1.test.describe('User Roles User Flow', () => {
|
|
|
129
129
|
await modelerCreatePage.clickCloseButton();
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
|
-
|
|
132
|
+
// Skipped due to bug #60139: https://github.com/camunda/camunda/issues/60139
|
|
133
|
+
_8_10_1.test.skip('Analyst Role User Flow', async ({ page, modelerHomePage, appsPage, homePage, clusterPage, clusterDetailsPage, browser, consoleOrganizationsPage, settingsPage, operateHomePage, ocIdentityHomePage, taskPanelPage, optimizeHomePage, modelerCreatePage, }) => {
|
|
133
134
|
_8_10_1.test.slow();
|
|
134
135
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
135
136
|
const processName = 'User Roles User Flow' + randomString;
|