Skip to content

Commit

Permalink
fixed tests, removed deps
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Mar 16, 2024
1 parent 163496c commit 3498d8b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
12 changes: 0 additions & 12 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -661,18 +661,6 @@ plugins: {
More config options are available:
- `healLimit` - how many steps can be healed in a single test (default: 2)
- `healSteps` - which steps can be healed (default: all steps that interact with UI, see list below)
Steps to heal:
- `click`
- `fillField`
- `appendField`
- `selectOption`
- `attachFile`
- `checkOption`
- `uncheckOption`
- `doubleClick`
### Parameters
Expand Down
1 change: 1 addition & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class Cli extends Base {
}

const steps = test.steps || (test.ctx && test.ctx.test.steps);

if (steps && steps.length) {
let scenarioTrace = '';
steps.reverse().forEach((step) => {
Expand Down
6 changes: 2 additions & 4 deletions lib/listener/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ module.exports = function () {
currentTest.state = 'passed';
});

event.dispatcher.on(event.step.started, (step) => {
if (store.debugMode) return;
event.dispatcher.on(event.step.started, (step) => {
step.startedAt = +new Date();
step.test = currentTest;
if (currentHook && Array.isArray(currentHook.steps)) {
Expand All @@ -77,8 +76,7 @@ module.exports = function () {
currentTest.steps.push(step);
});

event.dispatcher.on(event.step.finished, (step) => {
if (store.debugMode) return;
event.dispatcher.on(event.step.finished, (step) => {
step.finishedAt = +new Date();
if (step.startedAt) step.duration = step.finishedAt - step.startedAt;
debug(`Step '${step}' finished; Duration: ${step.duration || 0}ms`);
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"@cucumber/cucumber-expressions": "17",
"@cucumber/gherkin": "26",
"@cucumber/messages": "24.0.1",
"@testomatio/reporter": "^1.2.2-beta.show-error.1",
"@xmldom/xmldom": "0.8.10",
"acorn": "8.11.2",
"arrify": "2.0.1",
Expand Down

0 comments on commit 3498d8b

Please sign in to comment.