@camunda/e2e-test-suite 0.0.523 → 0.0.525
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.
|
@@ -65,7 +65,7 @@ class NavigationPage {
|
|
|
65
65
|
await (0, sleep_1.sleep)(sleepTimeout);
|
|
66
66
|
}
|
|
67
67
|
await this.page.goto(url, {
|
|
68
|
-
timeout:
|
|
68
|
+
timeout: 60000,
|
|
69
69
|
waitUntil: 'domcontentloaded',
|
|
70
70
|
});
|
|
71
71
|
const loginPage = new LoginPage_1.LoginPage(this.page);
|
|
@@ -74,7 +74,7 @@ class NavigationPage {
|
|
|
74
74
|
.or(loginPage.coreUsernameInput)
|
|
75
75
|
.or(loginPage.keycloakBanner)
|
|
76
76
|
.first();
|
|
77
|
-
await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout:
|
|
77
|
+
await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 60000 });
|
|
78
78
|
const isBannerVisible = await banner.isVisible().catch(() => false);
|
|
79
79
|
if (isBannerVisible) {
|
|
80
80
|
const loginVisible = await loginPage.usernameInput.isVisible();
|
|
@@ -48,10 +48,13 @@ class NavigationPage {
|
|
|
48
48
|
if (sleepTimeout) {
|
|
49
49
|
await (0, sleep_1.sleep)(sleepTimeout);
|
|
50
50
|
}
|
|
51
|
-
await this.page.goto(url, {
|
|
51
|
+
await this.page.goto(url, {
|
|
52
|
+
timeout: 60000,
|
|
53
|
+
waitUntil: 'domcontentloaded',
|
|
54
|
+
});
|
|
52
55
|
const loginPage = new LoginPage_1.LoginPage(this.page);
|
|
53
56
|
const loginSelector = loginPage.usernameInput;
|
|
54
|
-
await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout:
|
|
57
|
+
await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout: 60000 });
|
|
55
58
|
const isBannerVisible = await banner.isVisible();
|
|
56
59
|
if (isBannerVisible) {
|
|
57
60
|
try {
|
|
@@ -61,11 +61,14 @@ class NavigationPage {
|
|
|
61
61
|
if (sleepTimeout) {
|
|
62
62
|
await (0, sleep_1.sleep)(sleepTimeout);
|
|
63
63
|
}
|
|
64
|
-
await this.page.goto(url, {
|
|
64
|
+
await this.page.goto(url, {
|
|
65
|
+
timeout: 60000,
|
|
66
|
+
waitUntil: 'domcontentloaded',
|
|
67
|
+
});
|
|
65
68
|
const loginPage = new LoginPage_1.LoginPage(this.page);
|
|
66
69
|
const loginSelector = loginPage.usernameInput; // Or another unique, stable selector
|
|
67
70
|
// 1. Wait for either the banner or the login page to appear first.
|
|
68
|
-
await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout:
|
|
71
|
+
await (0, test_1.expect)(banner.or(loginSelector)).toBeVisible({ timeout: 60000 });
|
|
69
72
|
// 2. Now, check which one it was.
|
|
70
73
|
const isBannerVisible = await banner.isVisible();
|
|
71
74
|
if (isBannerVisible) {
|
|
@@ -56,7 +56,7 @@ class NavigationPage {
|
|
|
56
56
|
await (0, sleep_1.sleep)(sleepTimeout);
|
|
57
57
|
}
|
|
58
58
|
await this.page.goto(url, {
|
|
59
|
-
timeout:
|
|
59
|
+
timeout: 60000,
|
|
60
60
|
waitUntil: 'domcontentloaded',
|
|
61
61
|
});
|
|
62
62
|
const loginPage = new LoginPage_1.LoginPage(this.page);
|
|
@@ -65,7 +65,7 @@ class NavigationPage {
|
|
|
65
65
|
.or(loginPage.coreUsernameInput)
|
|
66
66
|
.or(loginPage.keycloakBanner)
|
|
67
67
|
.first();
|
|
68
|
-
await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout:
|
|
68
|
+
await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 60000 });
|
|
69
69
|
const isBannerVisible = await banner.isVisible().catch(() => false);
|
|
70
70
|
if (isBannerVisible) {
|
|
71
71
|
try {
|
|
@@ -65,7 +65,7 @@ class NavigationPage {
|
|
|
65
65
|
await (0, sleep_1.sleep)(sleepTimeout);
|
|
66
66
|
}
|
|
67
67
|
await this.page.goto(url, {
|
|
68
|
-
timeout:
|
|
68
|
+
timeout: 60000,
|
|
69
69
|
waitUntil: 'domcontentloaded',
|
|
70
70
|
});
|
|
71
71
|
const loginPage = new LoginPage_1.LoginPage(this.page);
|
|
@@ -74,7 +74,7 @@ class NavigationPage {
|
|
|
74
74
|
.or(loginPage.coreUsernameInput)
|
|
75
75
|
.or(loginPage.keycloakBanner)
|
|
76
76
|
.first();
|
|
77
|
-
await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout:
|
|
77
|
+
await (0, test_1.expect)(loginEntryPoint).toBeVisible({ timeout: 60000 });
|
|
78
78
|
const isBannerVisible = await banner.isVisible().catch(() => false);
|
|
79
79
|
if (isBannerVisible) {
|
|
80
80
|
try {
|