@zohodesk/testinglibrary 0.4.54-experimental → 0.4.55-experimental
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.
|
@@ -9,10 +9,9 @@ var _default = exports.default = {
|
|
|
9
9
|
executionContext: async ({
|
|
10
10
|
$tags
|
|
11
11
|
}, use) => {
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
actorInfo: testPortalDetails
|
|
12
|
+
let testPortalActorDetails = {
|
|
13
|
+
actorInfo: (0, _page.getCustomAccountDetails)($tags)
|
|
15
14
|
};
|
|
16
|
-
await use(
|
|
15
|
+
await use(testPortalActorDetails);
|
|
17
16
|
}
|
|
18
17
|
};
|
|
@@ -61,11 +61,12 @@ var _default = exports.default = {
|
|
|
61
61
|
page,
|
|
62
62
|
executionContext
|
|
63
63
|
}, use, testInfo) => {
|
|
64
|
+
let testPortalDetails = executionContext.actorInfo;
|
|
64
65
|
let testDetails = {
|
|
65
66
|
page,
|
|
66
67
|
$tags,
|
|
67
68
|
context,
|
|
68
|
-
...
|
|
69
|
+
...testPortalDetails
|
|
69
70
|
};
|
|
70
71
|
try {
|
|
71
72
|
//This block is used to skip the login process if the @unauthenticated tag is added to the script
|
|
@@ -80,12 +81,12 @@ var _default = exports.default = {
|
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
82
83
|
const projectName = testInfo.project.name;
|
|
83
|
-
if (
|
|
84
|
+
if (testPortalDetails && projectName !== 'setup' && projectName !== 'cleanup') {
|
|
84
85
|
await context.clearCookies();
|
|
85
86
|
await (0, _auth.performLoginSteps)(testDetails, async testInfo => {
|
|
86
87
|
return await verifyPageIsLoaded(testInfo);
|
|
87
88
|
}, loginSteps);
|
|
88
|
-
process.env.actorInfo = JSON.stringify(
|
|
89
|
+
process.env.actorInfo = JSON.stringify(testPortalDetails);
|
|
89
90
|
}
|
|
90
91
|
} catch (e) {
|
|
91
92
|
console.error('Error during page', e);
|
package/npm-shrinkwrap.json
CHANGED