@camunda/e2e-test-suite 0.0.473 → 0.0.474
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.
|
@@ -11,7 +11,7 @@ class OperateLoginPage {
|
|
|
11
11
|
this.page = page;
|
|
12
12
|
this.usernameInput = page.getByLabel('Username');
|
|
13
13
|
this.passwordInput = page.getByRole('textbox', { name: 'password' });
|
|
14
|
-
this.loginButton = page.getByRole('button', { name:
|
|
14
|
+
this.loginButton = page.getByRole('button', { name: /log.?in|sign.?in/i });
|
|
15
15
|
}
|
|
16
16
|
async fillUsername(username) {
|
|
17
17
|
await this.usernameInput.fill(username);
|
|
@@ -26,12 +26,17 @@ class OperateLoginPage {
|
|
|
26
26
|
await this.loginButton.click({ timeout: 60000 });
|
|
27
27
|
}
|
|
28
28
|
async login(username, password) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
try {
|
|
30
|
+
await (0, test_1.expect)(this.usernameInput).toBeVisible();
|
|
31
|
+
await (0, test_1.expect)(this.passwordInput).toBeVisible();
|
|
32
|
+
await this.clickUsername();
|
|
33
|
+
await this.fillUsername(username);
|
|
34
|
+
await this.fillPassword(password);
|
|
35
|
+
await this.clickLoginButton();
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
await (0, test_1.expect)(this.page.getByRole('link', { name: 'Camunda logo Operate' })).toBeVisible();
|
|
39
|
+
}
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
exports.OperateLoginPage = OperateLoginPage;
|
|
@@ -11,7 +11,7 @@ class TaskListLoginPage {
|
|
|
11
11
|
this.page = page;
|
|
12
12
|
this.usernameInput = page.getByLabel('Username');
|
|
13
13
|
this.passwordInput = page.getByRole('textbox', { name: 'password' });
|
|
14
|
-
this.loginButton = page.getByRole('button', { name:
|
|
14
|
+
this.loginButton = page.getByRole('button', { name: /log.?in|sign.?in/i });
|
|
15
15
|
}
|
|
16
16
|
async fillUsername(username) {
|
|
17
17
|
await this.usernameInput.fill(username);
|
|
@@ -26,12 +26,17 @@ class TaskListLoginPage {
|
|
|
26
26
|
await this.loginButton.click({ timeout: 60000 });
|
|
27
27
|
}
|
|
28
28
|
async login(username, password) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
try {
|
|
30
|
+
await (0, test_1.expect)(this.usernameInput).toBeVisible();
|
|
31
|
+
await (0, test_1.expect)(this.passwordInput).toBeVisible();
|
|
32
|
+
await this.clickUsername();
|
|
33
|
+
await this.fillUsername(username);
|
|
34
|
+
await this.fillPassword(password);
|
|
35
|
+
await this.clickLoginButton();
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
await (0, test_1.expect)(this.page.getByRole('link', { name: 'Camunda logo Tasklist' })).toBeVisible();
|
|
39
|
+
}
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
exports.TaskListLoginPage = TaskListLoginPage;
|