@zohodesk/testinglibrary 3.2.6 → 3.2.7

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,6 +19,11 @@
19
19
 
20
20
  ## Version History
21
21
 
22
+ ### v3.2.7 - 10-09-2025
23
+
24
+ ### Bug fix
25
+ - Fixed a bug where the default profile page was not being handled properly in `this`.
26
+
22
27
  ### v3.2.6 - 05-09-2025
23
28
 
24
29
  #### Feature
@@ -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": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/testinglibrary",
9
- "version": "3.2.6",
9
+ "version": "3.2.7",
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": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {