@zohodesk/testinglibrary 0.1.8-stb-bdd-v10 → 0.1.8-stb-bdd-v11
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.
|
@@ -36,7 +36,7 @@ function testCase(steps, examples, description, browserObjects, tags, option) {
|
|
|
36
36
|
return val.concat('-');
|
|
37
37
|
});
|
|
38
38
|
let avoidRepitationDescription = exampleDescription.join('').concat(`Example-${index + 1}`);
|
|
39
|
-
return testBlock(avoidRepitationDescription, stepReportHandle(steps, examples), browserObjects);
|
|
39
|
+
return testBlock(avoidRepitationDescription, stepReportHandle(steps, examples[index]), browserObjects);
|
|
40
40
|
});
|
|
41
41
|
return testSuite(description, exmapleScenario.join('\n'), tags);
|
|
42
42
|
}
|
|
@@ -10,7 +10,7 @@ var _path = _interopRequireDefault(require("path"));
|
|
|
10
10
|
var _readConfigFile = require("../readConfigFile");
|
|
11
11
|
var _configUtils = require("./config-utils");
|
|
12
12
|
var _testDataMap = require("../../../bdd-poc/test/testDataMap");
|
|
13
|
-
var
|
|
13
|
+
var _stepRunner = require("../../../bdd-poc/core-runner/stepRunner");
|
|
14
14
|
const {
|
|
15
15
|
browsers,
|
|
16
16
|
trace,
|
|
@@ -52,7 +52,7 @@ const testOptions = (0, _configUtils.getTestUseOptions)({
|
|
|
52
52
|
*/
|
|
53
53
|
async function getPlaywrightConfig() {
|
|
54
54
|
globalThis.globalStepMap = new Map();
|
|
55
|
-
(0,
|
|
55
|
+
(0, _stepRunner.stepFileMap)();
|
|
56
56
|
globalThis.globalTestdata = await (0, _testDataMap.testDataCreation)();
|
|
57
57
|
return {
|
|
58
58
|
testDir,
|