File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
packages/selenium-ide/src/neo/playback/playback-tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -55,19 +55,22 @@ export class CommandNode {
55
55
isTerminal ( ) {
56
56
return (
57
57
ControlFlowCommandChecks . isTerminal ( this . command ) ||
58
- this . command . command === '' ||
59
- this . command . command . startsWith ( '//' )
58
+ this . command . command === ''
60
59
)
61
60
}
62
61
62
+ isDisabled ( ) {
63
+ return this . command . command . startsWith ( '//' )
64
+ }
65
+
63
66
execute ( commandExecutor , options , targetOverride ) {
64
67
if ( this . _isRetryLimit ( ) ) {
65
68
return Promise . resolve ( {
66
69
result :
67
70
'Max retry limit exceeded. To override it, specify a new limit in the value input field.' ,
68
71
} )
69
72
}
70
- if ( this . isTerminal ( ) ) {
73
+ if ( this . isDisabled ( ) ) {
71
74
return Promise . resolve (
72
75
this . _executionResult ( commandExecutor , { result : 'success' } )
73
76
)
@@ -112,6 +115,10 @@ export class CommandNode {
112
115
throw new Error ( `Unknown command ${ this . command . command } ` )
113
116
} else if ( this . isControlFlow ( ) ) {
114
117
return this . _evaluate ( commandExecutor )
118
+ } else if ( this . isTerminal ( ) ) {
119
+ return Promise . resolve ( {
120
+ result : 'success' ,
121
+ } )
115
122
} else if (
116
123
this . isWebDriverCommand ( commandExecutor ) ||
117
124
this . isExtCommand ( commandExecutor )
You can’t perform that action at this time.
0 commit comments