@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 testPortalDetails = (0, _page.getCustomAccountDetails)($tags);
13
- let testActorInfo = {
14
- actorInfo: testPortalDetails
12
+ let testPortalActorDetails = {
13
+ actorInfo: (0, _page.getCustomAccountDetails)($tags)
15
14
  };
16
- await use(testActorInfo);
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
- ...executionContext.actorInfo
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 (executionContext.actorInfo && projectName !== 'setup' && projectName !== 'cleanup') {
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(executionContext.actorInfo);
89
+ process.env.actorInfo = JSON.stringify(testPortalDetails);
89
90
  }
90
91
  } catch (e) {
91
92
  console.error('Error during page', e);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.4.54-experimental",
3
+ "version": "0.4.55-experimental",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.4.54-experimental",
3
+ "version": "0.4.55-experimental",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {