@eclipse-che/che-e2e 7.79.0-next-93348b5 → 7.80.0-next-2571324
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPreferences.js","sourceRoot":"","sources":["../../../pageobjects/dashboard/UserPreferences.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;wEAQwE;AACxE,yCAA+C;AAC/C,4BAA0B;AAC1B,mEAAwD;AACxD,2DAAwC;AACxC,2DAAwD;AACxD,+CAA4C;AAGrC,IAAM,eAAe,uBAArB,MAAM,eAAe;IAgB3B,YAEU,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IACjC,CAAC;IAEJ,KAAK,CAAC,uBAAuB;
|
|
1
|
+
{"version":3,"file":"UserPreferences.js","sourceRoot":"","sources":["../../../pageobjects/dashboard/UserPreferences.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;wEAQwE;AACxE,yCAA+C;AAC/C,4BAA0B;AAC1B,mEAAwD;AACxD,2DAAwC;AACxC,2DAAwD;AACxD,+CAA4C;AAGrC,IAAM,eAAe,uBAArB,MAAM,eAAe;IAgB3B,YAEU,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IACjC,CAAC;IAEJ,KAAK,CAAC,uBAAuB;QAC5B,eAAM,CAAC,KAAK,EAAE,CAAC;QAEf,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,iBAAe,CAAC,sBAAsB,CAAC,CAAC;QAC7E,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,iBAAe,CAAC,uBAAuB,CAAC,CAAC;QAE9E,MAAM,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,iBAAe,CAAC,qBAAqB,CAAC,CAAC;IAC/E,CAAC;IAED,KAAK,CAAC,qBAAqB;QAC1B,eAAM,CAAC,KAAK,EAAE,CAAC;QAE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F,uCAAuB,GAAO,uBAAE,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;AAC9E,qCAAqB,GAAO,uBAAE,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;AAExE,wCAAwB,GAAO,uBAAE,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;AACnF,gCAAgB,GAAO,uBAAE,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;AAEnE,uBAAO,GAAO,uBAAE,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;AACpE,kCAAkB,GAAO,uBAAE,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;AAElF,+BAAe,GAAO,uBAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;AAE/D,2BAAW,GAAO,uBAAE,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;AAC1D,sCAAsB,GAAO,uBAAE,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;AAdpF,eAAe;IAD3B,IAAA,sBAAU,GAAE;IAkBV,WAAA,IAAA,kBAAM,EAAC,yBAAO,CAAC,YAAY,CAAC,CAAA;qCACN,2BAAY;GAlBxB,eAAe,CAuE3B;AAvEY,0CAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPreferencesTest.spec.js","sourceRoot":"","sources":["../../../specs/miscellaneous/UserPreferencesTest.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;wEAQwE;AACxE,qEAA8D;AAC9D,mEAAwD;AAExD,6EAA0E;
|
|
1
|
+
{"version":3,"file":"UserPreferencesTest.spec.js","sourceRoot":"","sources":["../../../specs/miscellaneous/UserPreferencesTest.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;wEAQwE;AACxE,qEAA8D;AAC9D,mEAAwD;AAExD,6EAA0E;AAG1E,KAAK,CAAC,sCAAsC,yCAAmB,CAAC,gBAAgB,EAAE,EAAE;IACnF,MAAM,UAAU,GAAe,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,UAAU,CAAC,CAAC;IACpE,MAAM,eAAe,GAAoB,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,eAAe,CAAC,CAAC;IAEnF,UAAU,CAAC,OAAO,EAAE,KAAK;QACxB,MAAM,UAAU,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,6BAA6B,EAAE,KAAK;QACxC,MAAM,eAAe,CAAC,uBAAuB,EAAE,CAAC;QAChD,MAAM,eAAe,CAAC,qBAAqB,EAAE,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -20,16 +20,16 @@ export class UserPreferences {
|
|
|
20
20
|
private static readonly USER_PREFERENCES_BUTTON: By = By.xpath('//button[text()="User Preferences"]');
|
|
21
21
|
private static readonly USER_PREFERENCES_PAGE: By = By.xpath('//h1[text()="User Preferences"]');
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
private static readonly CONTAINER_REGISTRIES_TAB: By = By.xpath('//button[text()="Container Registries"]');
|
|
24
|
+
private static readonly GIT_SERVICES_TAB: By = By.xpath('//button[text()="Git Services"]');
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
private static readonly PAT_TAB: By = By.xpath('//button[text()="Personal Access Tokens"]');
|
|
27
|
+
private static readonly ADD_NEW_PAT_BUTTON: By = By.xpath('//button[text()="Add Personal Access Token"]');
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
private static readonly GIT_CONFIG_PAGE: By = By.xpath('//button[text()="Gitconfig"]');
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
private static readonly SSH_KEY_TAB: By = By.xpath('//button[text()="SSH Keys"]');
|
|
32
|
+
private static readonly ADD_NEW_SSH_KEY_BUTTON: By = By.xpath('//button[text()="Add SSH Key"]');
|
|
33
33
|
|
|
34
34
|
constructor(
|
|
35
35
|
@inject(CLASSES.DriverHelper)
|
|
@@ -37,7 +37,7 @@ export class UserPreferences {
|
|
|
37
37
|
) {}
|
|
38
38
|
|
|
39
39
|
async openUserPreferencesPage(): Promise<void> {
|
|
40
|
-
|
|
40
|
+
Logger.debug();
|
|
41
41
|
|
|
42
42
|
await this.driverHelper.waitAndClick(UserPreferences.USER_SETTINGS_DROPDOWN);
|
|
43
43
|
await this.driverHelper.waitAndClick(UserPreferences.USER_PREFERENCES_BUTTON);
|
|
@@ -45,45 +45,45 @@ export class UserPreferences {
|
|
|
45
45
|
await this.driverHelper.waitVisibility(UserPreferences.USER_PREFERENCES_PAGE);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
async checkTabsAvailability(): Promise<void> {
|
|
49
|
+
Logger.debug();
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
await this.openContainerRegistriesTab();
|
|
52
|
+
await this.openGitServicesTab();
|
|
53
|
+
await this.openPatTab();
|
|
54
|
+
await this.openGitConfigPage();
|
|
55
|
+
await this.openSshKeyTab();
|
|
56
|
+
}
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
async openContainerRegistriesTab(): Promise<void> {
|
|
59
|
+
Logger.debug();
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
await this.driverHelper.waitAndClick(UserPreferences.CONTAINER_REGISTRIES_TAB);
|
|
62
|
+
}
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
async openGitServicesTab(): Promise<void> {
|
|
65
|
+
Logger.debug();
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
await this.driverHelper.waitAndClick(UserPreferences.GIT_SERVICES_TAB);
|
|
68
|
+
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
async openPatTab(): Promise<void> {
|
|
71
|
+
Logger.debug();
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
await this.driverHelper.waitAndClick(UserPreferences.PAT_TAB);
|
|
74
|
+
await this.driverHelper.waitVisibility(UserPreferences.ADD_NEW_PAT_BUTTON);
|
|
75
|
+
}
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
async openGitConfigPage(): Promise<void> {
|
|
78
|
+
Logger.debug();
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
await this.driverHelper.waitAndClick(UserPreferences.GIT_CONFIG_PAGE);
|
|
81
|
+
}
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
async openSshKeyTab(): Promise<void> {
|
|
84
|
+
Logger.debug();
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
await this.driverHelper.waitAndClick(UserPreferences.SSH_KEY_TAB);
|
|
87
|
+
await this.driverHelper.waitVisibility(UserPreferences.ADD_NEW_SSH_KEY_BUTTON);
|
|
88
|
+
}
|
|
89
89
|
}
|
|
@@ -13,7 +13,6 @@ import { LoginTests } from '../../tests-library/LoginTests';
|
|
|
13
13
|
import { BASE_TEST_CONSTANTS } from '../../constants/BASE_TEST_CONSTANTS';
|
|
14
14
|
import { UserPreferences } from '../../pageobjects/dashboard/UserPreferences';
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
suite(`"Check User Preferences page" test ${BASE_TEST_CONSTANTS.TEST_ENVIRONMENT}`, function (): void {
|
|
18
17
|
const loginTests: LoginTests = e2eContainer.get(CLASSES.LoginTests);
|
|
19
18
|
const userPreferences: UserPreferences = e2eContainer.get(CLASSES.UserPreferences);
|
|
@@ -26,5 +25,4 @@ suite(`"Check User Preferences page" test ${BASE_TEST_CONSTANTS.TEST_ENVIRONMENT
|
|
|
26
25
|
await userPreferences.openUserPreferencesPage();
|
|
27
26
|
await userPreferences.checkTabsAvailability();
|
|
28
27
|
});
|
|
29
|
-
|
|
30
28
|
});
|