@zohodesk/testinglibrary 0.1.4 → 0.1.5
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/.eslintrc.js +1 -1
- package/build/bdd-framework/cli/commands/env.js +1 -2
- package/build/bdd-framework/cli/commands/export.js +1 -2
- package/build/bdd-framework/cli/commands/test.js +1 -2
- package/build/bdd-framework/cli/options.js +1 -2
- package/build/bdd-framework/config/index.js +1 -2
- package/build/bdd-framework/decorators.js +4 -8
- package/build/bdd-framework/playwright/utils.js +1 -4
- package/build/bdd-framework/run/bddFixtures.js +1 -2
- package/build/bdd-framework/snippets/index.js +0 -1
- package/build/bdd-framework/stepDefinitions/createDecorators.js +0 -1
- package/build/bdd-framework/stepDefinitions/decorators/steps.js +0 -1
- package/build/bdd-framework/utils/logger.js +1 -2
- package/build/core/jest/preprocessor/jsPreprocessor.js +2 -3
- package/build/core/playwright/clear-caches.js +29 -0
- package/build/core/playwright/custom-commands.js +1 -2
- package/build/core/playwright/index.js +1 -3
- package/build/core/playwright/readConfigFile.js +1 -2
- package/build/core/playwright/setup/config-creator.js +2 -3
- package/build/core/playwright/setup/custom-reporter.js +100 -0
- package/build/core/playwright/test-runner.js +3 -5
- package/build/index.d.ts +58 -3
- package/build/index.js +4 -2
- package/build/lib/cli.js +10 -1
- package/build/parser/parser.js +0 -1
- package/build/setup-folder-structure/helper.js +34 -0
- package/build/setup-folder-structure/samples/git-ignore.sample.js +8 -4
- package/build/setup-folder-structure/setupProject.js +10 -5
- package/build/utils/fileUtils.js +12 -0
- package/build/utils/logger.js +1 -2
- package/build/utils/stepDefinitionsFormatter.js +1 -2
- package/changelog.md +22 -0
- package/npm-shrinkwrap.json +968 -2280
- package/package.json +6 -5
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.delimiters = void 0;
|
|
7
7
|
exports.findDelimiterFromStep = findDelimiterFromStep;
|
|
8
|
-
const delimiters = ["Given", "When", "Then", "And"];
|
|
9
|
-
exports.delimiters = delimiters;
|
|
8
|
+
const delimiters = exports.delimiters = ["Given", "When", "Then", "And"];
|
|
10
9
|
function findDelimiterFromStep(step) {
|
|
11
10
|
return delimiters.find(delimiter => step.includes(delimiter));
|
|
12
11
|
}
|
package/changelog.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
## Framework that abstracts the configuration for playwright and Jest
|
|
4
4
|
|
|
5
|
+
# 0.1.5
|
|
6
|
+
|
|
7
|
+
**Enhancements**
|
|
8
|
+
|
|
9
|
+
- Playwright version updated to `1.40.1`
|
|
10
|
+
- And and But Support added
|
|
11
|
+
- Added Code Suggestions support
|
|
12
|
+
- Custom Reporter added. Now the report will be available in json format.
|
|
13
|
+
- New Commands added.
|
|
14
|
+
|
|
15
|
+
`- help: npx ZDTestingFramework help`
|
|
16
|
+
|
|
17
|
+
- Will list down the commands available in the tool
|
|
18
|
+
|
|
19
|
+
`- clearCaches: npx ZDTestingFramework clearCaches`
|
|
20
|
+
|
|
21
|
+
- Will clear the exisiting cookies in the authentication setup
|
|
22
|
+
|
|
23
|
+
**Issue Fixes**
|
|
24
|
+
|
|
25
|
+
- Fixed Issue that occurs while quitting node process.
|
|
26
|
+
|
|
5
27
|
# 0.1.4
|
|
6
28
|
|
|
7
29
|
- `testIdAttribute` config added
|