@zohodesk/testinglibrary 0.4.88-n18-experimental → 0.4.89-n18-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.
package/README.md CHANGED
@@ -19,17 +19,20 @@
19
19
 
20
20
  ## Version History
21
21
 
22
- ### v3.2.6 - 02-09-2025
22
+ ### v3.2.6 - 05-09-2025
23
23
 
24
24
  #### Feature
25
25
 
26
- - Multi-actor execution support – now possible to switch between multiple profile agents within scenarios using the new `actorCtx` custom fixture.
26
+ - Multi-actor execution support – now possible to switch between multiple profile agents within scenarios using the predefined step: - `access the {string} profile page`
27
+
28
+ ### Bug fix
29
+ - Fixed the issue where localapp and hcapp UAT were not running properly.
27
30
 
28
31
  ### v3.2.5 - 28-08-2025
29
32
 
30
33
  #### Enhancement
31
34
 
32
- - Removed the searchFake dependency from the project level and adopted it inside the framework, reducing project-side maintenance.
35
+ - Removed the searchFake dependency from the project level and adopted it inside the framework, reducing project-side maintenance. use this predefined step: - `Given (a search entity)`
33
36
 
34
37
  ### v3.2.4 - 29-07-2025
35
38
 
@@ -1,10 +1,14 @@
1
1
  import { createBdd } from '@zohodesk/testinglibrary';
2
2
  const { BeforeScenario, Given } = createBdd();
3
3
 
4
- BeforeScenario(async function({ actorCtx }) {
4
+ BeforeScenario(async function({ page, context, browser, executionContext, actorContext }) {
5
5
  // This will run before each scenario and set all the fixtures into this context
6
+ this.page = page;
7
+ this.context = context;
8
+ this.browser = browser;
9
+ this.executionContext = executionContext;
6
10
  this.setActor = async (role) => {
7
- const userPage = actorCtx.actorsObj[role];
11
+ const userPage = actorContext.actorsObj[role];
8
12
  if (userPage) {
9
13
  this.page = userPage.page;
10
14
  this.context = userPage.context;
@@ -49,7 +49,7 @@ class additionalActorContext {
49
49
  }
50
50
  }
51
51
  var _default = exports.default = {
52
- actorCtx: async ({
52
+ actorContext: async ({
53
53
  $tags,
54
54
  browser
55
55
  }, use, testInfo) => {
@@ -12,14 +12,14 @@ var _addTags = _interopRequireDefault(require("./addTags"));
12
12
  var _i18N = _interopRequireDefault(require("./i18N"));
13
13
  var _unauthenticatedPage = _interopRequireDefault(require("./unauthenticatedPage"));
14
14
  var _executionContext = _interopRequireDefault(require("./executionContext"));
15
- var _actorCtx = _interopRequireDefault(require("./actorCtx"));
15
+ var _actorContext = _interopRequireDefault(require("./actorContext"));
16
16
  function extractTagsFromTitle(text) {
17
17
  return text.match(/@\w+/g) || [];
18
18
  }
19
19
  function getBuiltInFixtures(bddMode) {
20
20
  let builtInFixtures = {
21
21
  ..._page.default,
22
- ..._actorCtx.default,
22
+ ..._actorContext.default,
23
23
  ..._context.default,
24
24
  ..._cacheLayer.default,
25
25
  ..._i18N.default,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.4.88-n18-experimental",
3
+ "version": "0.4.89-n18-experimental",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/testinglibrary",
9
- "version": "0.4.88-n18-experimental",
9
+ "version": "0.4.89-n18-experimental",
10
10
  "hasInstallScript": true,
11
11
  "license": "ISC",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.4.88-n18-experimental",
3
+ "version": "0.4.89-n18-experimental",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -8,7 +8,6 @@
8
8
  "test": "jest",
9
9
  "clean": "rm -rf build && mkdir build",
10
10
  "build-babel": "babel -d ./build ./src --copy-files",
11
- "copy-common": "cp -r src/common build/",
12
11
  "build": "npm run clean && npm run build-babel",
13
12
  "prepare": "npm run build",
14
13
  "lint": "eslint src/* --fix"