@sap_oss/wdio-qmate-service 1.0.2 → 1.2.0
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/docs/doc.md +355 -152
- package/docs/sections/bestPractices/authentication.md +0 -2
- package/docs/sections/contact.md +4 -0
- package/docs/sections/features/advancedDataHandling.md +1 -1
- package/docs/sections/features/dataHandling.md +2 -2
- package/lib/reuse/authenticator/customAuthenticator.js +4 -4
- package/lib/reuse/authenticator/formAuthenticator.js +4 -4
- package/lib/reuse/modules/service/odata.d.ts +3 -3
- package/lib/reuse/modules/service/odata.js +3 -3
- package/lib/reuse/modules/ui5/control.d.ts +6 -5
- package/lib/reuse/modules/ui5/control.js +5 -5
- package/lib/reuse/modules/ui5/control.js.map +1 -1
- package/lib/reuse/modules/ui5/session.d.ts +8 -8
- package/lib/reuse/modules/ui5/session.js +15 -15
- package/lib/reuse/modules/ui5/session.js.map +1 -1
- package/lib/reuse/modules/ui5/userInteraction.d.ts +34 -21
- package/lib/reuse/modules/ui5/userInteraction.js +149 -114
- package/lib/reuse/modules/ui5/userInteraction.js.map +1 -1
- package/lib/scripts/hooks/utils/decryption.d.ts +11 -1
- package/lib/scripts/hooks/utils/decryption.js +53 -7
- package/lib/scripts/hooks/utils/decryption.js.map +1 -1
- package/package.json +2 -3
- package/test/authenticator/staticLogin/configCustom.js +1 -1
- package/test/authenticator/staticLogin/configFiori.js +1 -1
- package/test/authenticator/staticLogin/configSapCloud.js +1 -1
- package/test/authenticator/staticLogin/specs/custom.spec.js +2 -2
- package/test/authenticator/staticLogin/specs/customViaConfig.spec.js +1 -1
- package/test/authenticator/staticLogin/specs/plain.spec.js +4 -4
- package/test/authenticator/systemLogin/configCustom.js +2 -2
- package/test/authenticator/systemLogin/configFiori.js +3 -3
- package/test/authenticator/systemLogin/configPlain.js +1 -1
- package/test/authenticator/systemLogin/configSapCloud.js +3 -3
- package/test/core/dataExchange/utils.js +4 -4
- package/test/reuse/common/assertion/expectUrlToBe.spec.js +4 -4
- package/test/reuse/ui5/navigation/closePopups.spec.js +1 -1
- package/test/reuse/ui5/navigation/expectUnsupportedNavigationPopup.spec.js +6 -6
- package/test/reuse/ui5/navigation/navigateToApplication.spec.js +3 -3
- package/test/reuse/ui5/navigation/navigateToApplicationAndRetry.spec.js +3 -3
- package/test/reuse/ui5/navigation/navigateToSystemAndApplication.spec.js +7 -7
- package/test/reuse/ui5/navigation/navigateToSystemAndApplicationAndRetry.spec.js +4 -4
- package/test/reuse/ui5/navigation/test.navigation.conf.js +1 -1
- package/test/reuse/ui5/session/login.spec.js +4 -4
- package/test/reuse/ui5/session/loginFiori.spec.js +2 -2
- package/test/reuse/ui5/session/loginSapCloud.spec.js +3 -3
- package/test/reuse/ui5/session/logout.spec.js +2 -2
- package/test/reuse/ui5/session/switchUser.spec.js +6 -6
- package/test/reuse/ui5/userInteraction/clickTab.spec.js +52 -19
- package/test/reuse/ui5/userInteraction/selectFromTab.spec.js +38 -0
- package/test/reuse/ui5/userInteraction/test.userInteraction.conf.js +1 -0
- package/test/reuse/util/data/data/test.secure.json +4 -4
- package/test/reuse/util/data/decrypt.spec.js +1 -1
- package/test/reuse/util/data/getSecureData.spec.js +4 -4
- package/test/reuse/util/data/test.data.conf.js +1 -1
- package/docs/bestPractices/spec.md +0 -0
- package/docs/gettingStarted/setup.md +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decryption.js","sourceRoot":"","sources":["../../../../src/scripts/hooks/utils/decryption.ts"],"names":[],"mappings":";;AAAA,MAAM,UAAU;IAAhB;QACU,SAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QACvB,OAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACnB,WAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC3B,iBAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"decryption.js","sourceRoot":"","sources":["../../../../src/sc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AAc;QAClC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;IAEO,aAAa,CAAC,MAAc;QAClC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzD,CAAC;CAEF;AACD,kBAAe,IAAI,UAAU,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap_oss/wdio-qmate-service",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"author": "SAP SE",
|
|
5
5
|
"types": "./@types/index.d.ts",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
"test:reuse:util:console": "npx wdio ./test/reuse/util/console/test.console.conf.js",
|
|
91
91
|
"test:reuse:util:system": "npx wdio ./test/reuse/util/system/test.system.conf.js",
|
|
92
92
|
"test:reuse:util:formatter": "npx wdio ./test/reuse/util/formatter/test.formatter.conf.js",
|
|
93
|
-
"test:reuse:util:temp": "npm run test:reuse:util:browser && npm run test:reuse:util:file && npm run test:reuse:util:formatter",
|
|
94
93
|
"test:reuse:util": "npm run test:reuse:util:browser && npm run test:reuse:util:data && npm run test:reuse:util:file && npm run test:reuse:util:formatter && npm run test:reuse:util:system && npm run test:reuse:util:console",
|
|
95
94
|
"test:reuse:common:assertion": "npx wdio ./test/reuse/common/assertion/test.assertion.conf.js",
|
|
96
95
|
"test:reuse:common:navigation": "npx wdio ./test/reuse/common/navigation/test.navigation.conf.js",
|
|
@@ -139,7 +138,7 @@
|
|
|
139
138
|
"@wdio/spec-reporter": "^7.20.8",
|
|
140
139
|
"@wdio/static-server-service": "^7.10.1",
|
|
141
140
|
"chai": "^4.3.4",
|
|
142
|
-
"chromedriver": "^
|
|
141
|
+
"chromedriver": "^107.0.0",
|
|
143
142
|
"deepmerge": "^4.2.2",
|
|
144
143
|
"eslint": "^6.8.0",
|
|
145
144
|
"eslint-plugin-wdio": "^6.0.12",
|
|
@@ -7,7 +7,7 @@ exports.config = merge(staticServerConfig.config, {
|
|
|
7
7
|
auth: {
|
|
8
8
|
formType: "custom",
|
|
9
9
|
username: "PURCHASER",
|
|
10
|
-
password: "
|
|
10
|
+
password: "super-duper-sensitive-pw",
|
|
11
11
|
usernameFieldSelector: "#username",
|
|
12
12
|
passwordFieldSelector: "#password",
|
|
13
13
|
logonButtonSelector: "#logon"
|
|
@@ -12,7 +12,7 @@ describe("loginCustom", function () {
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
it("Execution", async function () {
|
|
15
|
-
await ui5.session.loginCustom("
|
|
15
|
+
await ui5.session.loginCustom("<username>", "<password>", "#username", "#password", "#logon", false);
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
it("Verification", async function () {
|
|
@@ -28,7 +28,7 @@ describe("loginCustom - error case", function () {
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
it("Execution and Verification", async function () {
|
|
31
|
-
await expect(ui5.session.loginCustom("
|
|
31
|
+
await expect(ui5.session.loginCustom("<username>", "<password>", "#wrongusernamefield", "#wrongpasswordfield", "#wrongsubmitbutton", false))
|
|
32
32
|
.rejects.toThrow("Function 'loginCustom' failed");
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
describe("authenticator - customViaConfig", function () {
|
|
2
2
|
it("Execution", async function () {
|
|
3
|
-
await ui5.session.loginCustomViaConfig("PURCHASER", "
|
|
3
|
+
await ui5.session.loginCustomViaConfig("PURCHASER", "super-duper-sensitive-pw", false);
|
|
4
4
|
});
|
|
5
5
|
|
|
6
6
|
it("Verification", async function () {
|
|
@@ -4,7 +4,7 @@ describe("authenticator (plain) - fiori", function () {
|
|
|
4
4
|
});
|
|
5
5
|
|
|
6
6
|
it("Execution", async function () {
|
|
7
|
-
await ui5.session.login("
|
|
7
|
+
await ui5.session.login("<username>", "<password>", false);
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
it("Verification", async function () {
|
|
@@ -20,7 +20,7 @@ describe("authenticator (plain) - sapCloud", function () {
|
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
it("Execution", async function () {
|
|
23
|
-
await ui5.session.login("
|
|
23
|
+
await ui5.session.login("<username>", "<password>", false);
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
it("Verification", async function () {
|
|
@@ -36,7 +36,7 @@ describe("authenticator (plain) - loginFiori", function () {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
it("Execution", async function () {
|
|
39
|
-
await ui5.session.loginFiori("
|
|
39
|
+
await ui5.session.loginFiori("<username>", "<password>", false);
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
it("Verification", async function () {
|
|
@@ -52,7 +52,7 @@ describe("authenticator (plain) - loginSapCloud", function () {
|
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
it("Execution", async function () {
|
|
55
|
-
await ui5.session.loginSapCloud("
|
|
55
|
+
await ui5.session.loginSapCloud("<username>", "<password>", false);
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
it("Verification", async function () {
|
|
@@ -14,7 +14,7 @@ exports.config = merge(customConfig.config, {
|
|
|
14
14
|
auth: {
|
|
15
15
|
formType: "custom",
|
|
16
16
|
username: "PURCHASER",
|
|
17
|
-
password: "
|
|
17
|
+
password: "super-duper-sensitive-pw",
|
|
18
18
|
usernameFieldSelector: "#USERNAME_BLOCK input",
|
|
19
19
|
passwordFieldSelector: "#PASSWORD_BLOCK input",
|
|
20
20
|
logonButtonSelector: "#LOGIN_LINK"
|
|
@@ -22,5 +22,5 @@ exports.config = merge(customConfig.config, {
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
reporters: ["spec"],
|
|
25
|
-
baseUrl: "
|
|
25
|
+
baseUrl: "<urlToSystem"
|
|
26
26
|
});
|
|
@@ -14,11 +14,11 @@ exports.config = merge(fioriConfig.config, {
|
|
|
14
14
|
params: {
|
|
15
15
|
auth: {
|
|
16
16
|
formType: "fiori-form",
|
|
17
|
-
username: "
|
|
18
|
-
password: "
|
|
17
|
+
username: "<username>",
|
|
18
|
+
password: "<password>"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
|
|
22
|
-
baseUrl: "
|
|
22
|
+
baseUrl: "<urlToSystem"
|
|
23
23
|
|
|
24
24
|
});
|
|
@@ -15,10 +15,10 @@ exports.config = merge(plainConfig.config, {
|
|
|
15
15
|
params: {
|
|
16
16
|
auth: {
|
|
17
17
|
formType: "sapcloud-form",
|
|
18
|
-
username: "
|
|
19
|
-
password: "
|
|
18
|
+
username: "<username>",
|
|
19
|
+
password: "<password>"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
|
|
23
|
-
baseUrl: "
|
|
23
|
+
baseUrl: "<urlToSystem>"
|
|
24
24
|
});
|
|
@@ -16,7 +16,7 @@ const utilsMethods = {
|
|
|
16
16
|
* have been imported under the specified key.
|
|
17
17
|
* @param {string} folderPath - the folder to read
|
|
18
18
|
* @param {string} paramName - the key to check against
|
|
19
|
-
* @example const myFolder1 = "./data/my/folder/data
|
|
19
|
+
* @example const myFolder1 = "./data/my/folder/data/<systemName>";
|
|
20
20
|
* await utils.checkImportFolder(myFolder1, "myFolder1");
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
@@ -63,12 +63,12 @@ const utilsMethods = {
|
|
|
63
63
|
/**
|
|
64
64
|
* @function checkImportedData - check if data from json file specified by jsonFilePrefix under
|
|
65
65
|
* folderPath has been added using the params key. In the example below data from
|
|
66
|
-
* "./data/my/folder/data
|
|
66
|
+
* "./data/my/folder/data/<systemName>/subfolder/LimitPurchaseOrder.json" is checked if present in
|
|
67
67
|
* browser.params.import.myFolder1.subfolder.LimitPurchaseOrder
|
|
68
68
|
* @param {string} folderPath - the folder path
|
|
69
69
|
* @param {string[]} params - array of keys
|
|
70
70
|
* @param {string} jsonFilePrefix - the prefix of json file.
|
|
71
|
-
* @example const myFolder1 = "./data/my/folder/data
|
|
71
|
+
* @example const myFolder1 = "./data/my/folder/data/<systemName>";
|
|
72
72
|
* await utils.checkImportedData(myFolder1, ["myFolder1","subfolder"], "LimitPurchaseOrder");
|
|
73
73
|
*/
|
|
74
74
|
checkImportedData: async function (folderPath, params, jsonFilePrefix) {
|
|
@@ -103,7 +103,7 @@ const utilsMethods = {
|
|
|
103
103
|
* the specified key
|
|
104
104
|
* @param {string} fileWithPath - file with path
|
|
105
105
|
* @param {string} paramName - the key to use
|
|
106
|
-
* @example const yourPrefixSpecName = "./data/my/folder/data
|
|
106
|
+
* @example const yourPrefixSpecName = "./data/my/folder/data/<systemName>/data.json";
|
|
107
107
|
* await await utils.checkImportedDataFromFile(yourPrefixSpecName, "yourPrefixSpecName");
|
|
108
108
|
*/
|
|
109
109
|
checkImportedDataFromFile: async function (fileWithPath, paramName) {
|
|
@@ -14,14 +14,14 @@ describe("assertion - expectUrlToBe - 'openui5.....'", function () {
|
|
|
14
14
|
|
|
15
15
|
describe("assertion - expectUrlToBe - error case", function () {
|
|
16
16
|
it("Preparation", async function () {
|
|
17
|
-
util.browser.setBaseUrl("https://
|
|
17
|
+
util.browser.setBaseUrl("https://sap.com");
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
it("Execution & Verification", async function () {
|
|
21
21
|
await expect(common.assertion.expectUrlToBe())
|
|
22
|
-
.rejects.toThrow(/Expect\w+|\d+undefined\w+|\d+Received\w+|\d+"https:\/\/
|
|
22
|
+
.rejects.toThrow(/Expect\w+|\d+undefined\w+|\d+Received\w+|\d+"https:\/\/sap.com"/);
|
|
23
23
|
|
|
24
|
-
await expect(common.assertion.expectUrlToBe("https://
|
|
25
|
-
.rejects.toThrow(/Expect\w+|\d+"https:\/\/
|
|
24
|
+
await expect(common.assertion.expectUrlToBe("https://sap.com"))
|
|
25
|
+
.rejects.toThrow(/Expect\w+|\d+"https:\/\/sap.com"\w+|\d+Received\w+|\d+"https:\/\/sap.com\/index"/);
|
|
26
26
|
});
|
|
27
27
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
describe("navigation - closePopups", function () {
|
|
4
4
|
it("Preparation", async function () {
|
|
5
|
-
await ui5.navigation.navigateToSystemAndApplication("
|
|
5
|
+
await ui5.navigation.navigateToSystemAndApplication("<urlToSystem>", "Shell-Home", false);
|
|
6
6
|
await ui5.session.login("AP_ACCOUNTANT");
|
|
7
7
|
});
|
|
8
8
|
|
|
@@ -22,9 +22,9 @@ const selectorForErrorPopupText = {
|
|
|
22
22
|
// TODO: discuss local server usage for assertion tests execution
|
|
23
23
|
describe.skip("navigation - expectUnsupportedNavigationPopup", function () {
|
|
24
24
|
it("Preparation", async function () {
|
|
25
|
-
browser.config.baseUrl = "
|
|
25
|
+
browser.config.baseUrl = "<systemName>";
|
|
26
26
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
27
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
27
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw", true);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
it("Execution", async function () {
|
|
@@ -44,9 +44,9 @@ describe.skip("navigation - expectUnsupportedNavigationPopup", function () {
|
|
|
44
44
|
// TODO: discuss local server usage for assertion tests execution
|
|
45
45
|
describe.skip("navigation - expectUnsupportedNavigationPopup with '&' (unhappy case, another error popup)", function () {
|
|
46
46
|
it("Preparation", async function () {
|
|
47
|
-
browser.config.baseUrl = "
|
|
47
|
+
browser.config.baseUrl = "<systemName>";
|
|
48
48
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
49
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
49
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw", true);
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
it("Execution", async function () {
|
|
@@ -68,9 +68,9 @@ describe.skip("navigation - expectUnsupportedNavigationPopup with '&' (unhappy c
|
|
|
68
68
|
|
|
69
69
|
describe("navigation - expectUnsupportedNavigationPopup (unhappy case - no popup - correct navigation)", function () {
|
|
70
70
|
it("Preparation", async function () {
|
|
71
|
-
browser.config.baseUrl = "
|
|
71
|
+
browser.config.baseUrl = "<systemName>";
|
|
72
72
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
73
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
73
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw", true);
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
it("Execution & Verification", async function () {
|
|
@@ -79,7 +79,7 @@ describe("navigation - navigateToApplication wrong navigation intent type with/w
|
|
|
79
79
|
await ui5.navigation.navigateToApplication(wrongApplication, false); // verify=false - no verification
|
|
80
80
|
const currentUrl = await browser.getUrl();
|
|
81
81
|
|
|
82
|
-
// system first navigates to '
|
|
82
|
+
// system first navigates to '<urlToSystem>#%5Bobject%20Object%5D'
|
|
83
83
|
expect(currentUrl).toContain(browser.config.baseUrl + "#[object%20Object]");
|
|
84
84
|
|
|
85
85
|
await expect(ui5.navigation.navigateToApplication(wrongApplication, false, true)) // verify = true,
|
|
@@ -106,7 +106,7 @@ const selectorForErrorPopupText = {
|
|
|
106
106
|
describe.skip("assertion - expectUnsupportedNavigationPopup", function () {
|
|
107
107
|
it("Preparation", async function () {
|
|
108
108
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
109
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
109
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
it("Execution", async function () {
|
|
@@ -127,7 +127,7 @@ describe.skip("assertion - expectUnsupportedNavigationPopup", function () {
|
|
|
127
127
|
describe.skip("assertion - expectUnsupportedNavigationPopup with '&' (unhappy case, another error popup)", function () {
|
|
128
128
|
it("Preparation", async function () {
|
|
129
129
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
130
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
130
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
it("Execution", async function () {
|
|
@@ -84,7 +84,7 @@ describe("navigation - navigateToApplicationAndRetry wrong navigation intent typ
|
|
|
84
84
|
await ui5.navigation.navigateToApplicationAndRetry(wrongApplication, false, false); // closePopups=false, verify=false - no verification
|
|
85
85
|
const currentUrl = await browser.getUrl();
|
|
86
86
|
|
|
87
|
-
// system first navigates to '
|
|
87
|
+
// system first navigates to '<urlToSystem>#%5Bobject%20Object%5D'
|
|
88
88
|
expect(currentUrl).toContain(browser.config.baseUrl + "#[object%20Object]");
|
|
89
89
|
|
|
90
90
|
await expect(ui5.navigation.navigateToApplicationAndRetry(wrongApplication, false, true)) // verify = true,
|
|
@@ -111,7 +111,7 @@ const selectorForErrorPopupText = {
|
|
|
111
111
|
describe.skip("assertion - expectUnsupportedNavigationPopup", function () {
|
|
112
112
|
it("Preparation", async function () {
|
|
113
113
|
await ui5.navigation.navigateToApplicationAndRetry("Shell-home", true);
|
|
114
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
114
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
it("Execution", async function () {
|
|
@@ -132,7 +132,7 @@ describe.skip("assertion - expectUnsupportedNavigationPopup", function () {
|
|
|
132
132
|
describe.skip("assertion - expectUnsupportedNavigationPopup with '&' (unhappy case, another error popup)", function () {
|
|
133
133
|
it("Preparation", async function () {
|
|
134
134
|
await ui5.navigation.navigateToApplicationAndRetry("Shell-home", true);
|
|
135
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
135
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
it("Execution", async function () {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
describe("navigation - navigateToSystemAndApplication (s4)", function () {
|
|
4
|
-
const system = "
|
|
4
|
+
const system = "<systemUrl>";
|
|
5
5
|
const application = "PurchaseOrder-manage";
|
|
6
6
|
|
|
7
7
|
it("Execution & Verification", async function () {
|
|
8
8
|
await ui5.navigation.navigateToSystemAndApplication(system, "Shell-home", false);
|
|
9
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
9
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
10
10
|
|
|
11
11
|
await ui5.navigation.navigateToSystemAndApplication(system, application, false);
|
|
12
12
|
});
|
|
@@ -22,7 +22,7 @@ describe("navigation - navigateToSystemAndApplication (s4)", function () {
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
describe("navigation - navigateToSystemAndApplication wrong navigation intent type in demo url with/without verification(unhappy case)", function () {
|
|
25
|
-
const system = "
|
|
25
|
+
const system = "<systemUrl>";
|
|
26
26
|
const wrongApplication = {
|
|
27
27
|
strange: "intent"
|
|
28
28
|
};
|
|
@@ -30,14 +30,14 @@ describe("navigation - navigateToSystemAndApplication wrong navigation intent ty
|
|
|
30
30
|
|
|
31
31
|
it("Execution & Verification", async function () {
|
|
32
32
|
await ui5.navigation.navigateToSystemAndApplication(system, application, false);
|
|
33
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
33
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
34
34
|
|
|
35
35
|
await ui5.navigation.navigateToSystemAndApplication(system, wrongApplication, false); // verify = false by default
|
|
36
36
|
const currentUrl = await browser.getUrl();
|
|
37
|
-
// first navigate to '
|
|
38
|
-
// later, in a second, navigate to '
|
|
37
|
+
// first navigate to '<urlToSystem#%5Bobject%20Object%5D'
|
|
38
|
+
// later, in a second, navigate to '<urlToSystem#Shell-home'
|
|
39
39
|
// Cannot test the intent inside the url, because it changes too fast in case of wrong intent
|
|
40
|
-
expect(currentUrl).toContain(system); // check you are still at the
|
|
40
|
+
expect(currentUrl).toContain(system); // check you are still at the <system> page
|
|
41
41
|
|
|
42
42
|
await expect(ui5.navigation.navigateToSystemAndApplication(system, wrongApplication, false, true)) // verify = true
|
|
43
43
|
.rejects.toThrow(/Navigation failed/);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
describe("navigation - navigateToSystemAndApplicationAndRetry", function () {
|
|
4
|
-
const system = "
|
|
4
|
+
const system = "<systemUrl>";
|
|
5
5
|
const application = "PurchaseOrder-manage";
|
|
6
6
|
|
|
7
7
|
it("Execution & Verification", async function () {
|
|
8
8
|
await common.navigation.navigateToUrl(`https://${system}`);
|
|
9
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
9
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
10
10
|
|
|
11
11
|
await ui5.navigation.navigateToSystemAndApplicationAndRetry(system, application, true);
|
|
12
12
|
});
|
|
@@ -22,7 +22,7 @@ describe("navigation - navigateToSystemAndApplicationAndRetry", function () {
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
describe("navigation - navigateToSystemAndApplicationAndRetry wrong navigation intent type in demo url with/without verification(unhappy case)", function () {
|
|
25
|
-
const system = "
|
|
25
|
+
const system = "<systemUrl>";
|
|
26
26
|
const wrongApplication = {
|
|
27
27
|
strange: "intent"
|
|
28
28
|
};
|
|
@@ -30,7 +30,7 @@ describe("navigation - navigateToSystemAndApplicationAndRetry wrong navigation i
|
|
|
30
30
|
|
|
31
31
|
it("Execution & Verification", async function () {
|
|
32
32
|
await ui5.navigation.navigateToSystemAndApplicationAndRetry(system, application, false);
|
|
33
|
-
await ui5.session.loginFiori("PURCHASER", "
|
|
33
|
+
await ui5.session.loginFiori("PURCHASER", "super-duper-sensitive-pw");
|
|
34
34
|
|
|
35
35
|
await ui5.navigation
|
|
36
36
|
.navigateToSystemAndApplicationAndRetry(system, wrongApplication, false, false); // verify = false - no error during navigation
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
describe("session - login - fiori", function () {
|
|
4
4
|
it("Preparation", async function () {
|
|
5
|
-
util.browser.setBaseUrl("
|
|
5
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
6
6
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
7
7
|
});
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@ describe("session - login - fiori", function () {
|
|
|
29
29
|
|
|
30
30
|
describe("session - login - fiori - invalid credentials", function () {
|
|
31
31
|
it("Preparation", async function () {
|
|
32
|
-
util.browser.setBaseUrl("
|
|
32
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
33
33
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ describe("session - login - fiori - invalid credentials", function () {
|
|
|
41
41
|
|
|
42
42
|
describe("session - login - sapCloud", function () {
|
|
43
43
|
it("Preparation", async function () {
|
|
44
|
-
util.browser.setBaseUrl("
|
|
44
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
45
45
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
46
46
|
});
|
|
47
47
|
|
|
@@ -67,7 +67,7 @@ describe("session - login - sapCloud", function () {
|
|
|
67
67
|
|
|
68
68
|
describe("session - login - sapCloud - Invalid credentials", function () {
|
|
69
69
|
it("Preparation", async function () {
|
|
70
|
-
util.browser.setBaseUrl("
|
|
70
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
71
71
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
72
72
|
});
|
|
73
73
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
describe("session - loginFiori", function () {
|
|
4
4
|
it("Preparation", async function () {
|
|
5
|
-
util.browser.setBaseUrl("
|
|
5
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
6
6
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
7
7
|
});
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@ describe("session - loginFiori", function () {
|
|
|
29
29
|
|
|
30
30
|
describe("session - loginFiori - invalid credentials", function () {
|
|
31
31
|
it("Preparation", async function () {
|
|
32
|
-
util.browser.setBaseUrl("
|
|
32
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
33
33
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
34
34
|
});
|
|
35
35
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
describe("session - loginSapCloud", function () {
|
|
4
4
|
it("Preparation", async function () {
|
|
5
|
-
util.browser.setBaseUrl("
|
|
5
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
6
6
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
7
7
|
});
|
|
8
8
|
|
|
@@ -28,7 +28,7 @@ describe("session - loginSapCloud", function () {
|
|
|
28
28
|
|
|
29
29
|
describe("session - loginSapCloud - Invalid credentials", function () {
|
|
30
30
|
it("Preparation", async function () {
|
|
31
|
-
util.browser.setBaseUrl("
|
|
31
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
32
32
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ describe("session - loginSapCloud - Invalid credentials", function () {
|
|
|
40
40
|
|
|
41
41
|
describe("session - login - sapCloud for Fiori (error case)", function () {
|
|
42
42
|
it("Preparation", async function () {
|
|
43
|
-
util.browser.setBaseUrl("
|
|
43
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
44
44
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
describe("session - logout with inner verification", function () {
|
|
4
4
|
it("Preparation", async function () {
|
|
5
|
-
util.browser.setBaseUrl("
|
|
5
|
+
util.browser.setBaseUrl("<urlToSystem");
|
|
6
6
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
7
7
|
await ui5.session.loginFiori("PURCHASER");
|
|
8
8
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
@@ -20,7 +20,7 @@ describe("session - logout with inner verification", function () {
|
|
|
20
20
|
|
|
21
21
|
describe("session - logout without inner verification", function () {
|
|
22
22
|
it("Preparation", async function () {
|
|
23
|
-
util.browser.setBaseUrl("
|
|
23
|
+
util.browser.setBaseUrl("<urlToSystem");
|
|
24
24
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
25
25
|
await ui5.session.loginFiori("PURCHASER");
|
|
26
26
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
describe("session - switchUser in fiori", function () {
|
|
4
4
|
it("Preparation", async function () {
|
|
5
|
-
util.browser.setBaseUrl("
|
|
5
|
+
util.browser.setBaseUrl("<urlToSystem");
|
|
6
6
|
await common.navigation.navigateToUrl(browser.config.baseUrl);
|
|
7
|
-
await ui5.session.login("PURCHASER", "
|
|
7
|
+
await ui5.session.login("PURCHASER", "super-duper-sensitive-pw");
|
|
8
8
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
9
9
|
await ui5.navigation.closePopups();
|
|
10
10
|
await ui5.navigationBar.expectShellHeader();
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
it("Execution", async function () {
|
|
14
|
-
await ui5.session.switchUser("AP_ACCOUNTANT", "
|
|
14
|
+
await ui5.session.switchUser("AP_ACCOUNTANT", "super-duper-sensitive-pw");
|
|
15
15
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
16
16
|
await ui5.navigation.closePopups();
|
|
17
17
|
});
|
|
@@ -27,14 +27,14 @@ describe("session - switchUser in fiori", function () {
|
|
|
27
27
|
|
|
28
28
|
describe("session - switchUser in sapCloud", function () {
|
|
29
29
|
it("Preparation", async function () {
|
|
30
|
-
util.browser.setBaseUrl("
|
|
30
|
+
util.browser.setBaseUrl("<urlToSystem>");
|
|
31
31
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
32
|
-
await ui5.session.loginSapCloud("PURCHASER", "
|
|
32
|
+
await ui5.session.loginSapCloud("PURCHASER", "super-duper-sensitive-pw");
|
|
33
33
|
await ui5.navigationBar.expectShellHeader();
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
it("Execution", async function () {
|
|
37
|
-
await ui5.session.switchUser("
|
|
37
|
+
await ui5.session.switchUser("<username>", "<password>", ui5.authenticators.sapCloudForm);
|
|
38
38
|
await ui5.navigation.navigateToApplication("Shell-home", true);
|
|
39
39
|
});
|
|
40
40
|
|