@zohodesk/testinglibrary 0.1.8-stb-bdd-v8 → 0.1.8-stb-bdd-v9

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.
@@ -11,7 +11,7 @@ exports.testStep = testStep;
11
11
  exports.testSuite = testSuite;
12
12
  const TESTING_LIBRARY = exports.TESTING_LIBRARY = '@zohodesk/testinglibrary';
13
13
  function testStep(keyword, description, browserObject, testData, options) {
14
- return `test.step("${keyword} ${description}",async() => {
14
+ return `await test.step("${keyword} ${description}",async() => {
15
15
  await $${keyword}('${description}')(${browserObject},${testData})
16
16
  })`;
17
17
  }
@@ -34,7 +34,10 @@ const projects = (0, _configUtils.getProjects)({
34
34
  viewport
35
35
  });
36
36
  // const testDir = getTestDir(bddMode, process.cwd(), { featureFilesFolder, stepDefinitionsFolder });
37
- const testDir = _path.default.resolve(process.cwd(), 'uat', '.feature-gen');
37
+ var testDir = _path.default.resolve(process.cwd(), 'uat', '.feature-gen');
38
+ if (!bddMode) {
39
+ testDir = _path.default.resolve(process.cwd(), 'uat', 'moudles', 'playwright-testcase');
40
+ }
38
41
  const testOptions = (0, _configUtils.getTestUseOptions)({
39
42
  trace,
40
43
  video,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/testinglibrary",
3
- "version": "0.1.8-stb-bdd-v8",
3
+ "version": "0.1.8-stb-bdd-v9",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {