-
Notifications
You must be signed in to change notification settings - Fork 677
feat: debug with selector option added #8066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dd83053
add: debug with selector option added
Bayheck f8c19fd
fix: test error fixed
Bayheck 8a481ac
refactoring and testing: added tests for debug with selector, refacto…
Bayheck f310de3
fix: test fixed
Bayheck 66b789a
refactor: debugCommand selector type refactored
Bayheck 48bea1e
remove fix test
Bayheck bf679c8
fix: pr comments fixed
Bayheck 66c10f7
fix: pr comments fix
Bayheck 67d8b94
fix: pr comments fixed
Bayheck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/client/driver/command-executors/action-executor/elements-retriever.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import { CommandBase } from './base'; | ||
| import TestRun from '../index'; | ||
|
|
||
| declare class ExecuteClientFunctionCommandBase extends CommandBase { | ||
| public constructor(obj: object, testRun: TestRun, type: string); | ||
| public instantiationCallsiteName: string; | ||
| public fnCode: string; | ||
| public args: string[]; | ||
| public dependencies: string[]; | ||
| } | ||
|
|
||
| export class ExecuteClientFunctionCommand extends ExecuteClientFunctionCommandBase { | ||
| public constructor(obj: object, testRun: TestRun); | ||
| } | ||
|
|
||
| export class ExecuteSelectorCommand extends ExecuteClientFunctionCommandBase { | ||
| public constructor(obj: object, testRun: TestRun); | ||
| public visibilityCheck: boolean; | ||
| public timeout?: number; | ||
| public apiFnChain: string[]; | ||
| public needError: boolean; | ||
| public index: number; | ||
| public strictError: boolean; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| import TYPE from './type'; | ||
| import { ActionCommandBase } from './base'; | ||
|
|
||
| export class ExecuteClientFunctionCommandBase extends ActionCommandBase { | ||
| constructor (obj, testRun, type) { | ||
| super(obj, testRun, type, false); | ||
| } | ||
|
|
||
| getAssignableProperties () { | ||
| return [ | ||
| { name: 'instantiationCallsiteName', defaultValue: '' }, | ||
| { name: 'fnCode', defaultValue: '' }, | ||
| { name: 'args', defaultValue: [] }, | ||
| { name: 'dependencies', defaultValue: [] }, | ||
| ]; | ||
| } | ||
| } | ||
|
|
||
| export class ExecuteClientFunctionCommand extends ExecuteClientFunctionCommandBase { | ||
| static methodName = TYPE.executeClientFunction; | ||
|
|
||
| constructor (obj, testRun) { | ||
| super(obj, testRun, TYPE.executeClientFunction); | ||
| } | ||
| } | ||
|
|
||
| export class ExecuteSelectorCommand extends ExecuteClientFunctionCommandBase { | ||
| static methodName = TYPE.executeSelector; | ||
|
|
||
| constructor (obj, testRun) { | ||
| super(obj, testRun, TYPE.executeSelector); | ||
| } | ||
|
|
||
| getAssignableProperties () { | ||
| return [ | ||
| { name: 'visibilityCheck', defaultValue: false }, | ||
| { name: 'timeout', defaultValue: null }, | ||
| { name: 'apiFnChain' }, | ||
| { name: 'needError' }, | ||
| { name: 'index', defaultValue: 0 }, | ||
| { name: 'strictError' }, | ||
| ]; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,13 @@ | ||
| import { CommandBase, ActionCommandBase } from './base'; | ||
| import { ActionCommandBase } from './base'; | ||
| import { ExecuteClientFunctionCommand } from './execute-client-function'; | ||
| import TestRun from '../index'; | ||
|
|
||
| declare class ExecuteClientFunctionCommandBase extends CommandBase { | ||
| public constructor(obj: object, testRun: TestRun, type: string); | ||
| public instantiationCallsiteName: string; | ||
| public fnCode: string; | ||
| public args: string[]; | ||
| public dependencies: string[]; | ||
| } | ||
|
|
||
| export class ExecuteClientFunctionCommand extends ExecuteClientFunctionCommandBase { | ||
| public constructor(obj: object, testRun: TestRun); | ||
| } | ||
|
|
||
| export class ExecuteSelectorCommand extends ExecuteClientFunctionCommandBase { | ||
| public constructor(obj: object, testRun: TestRun); | ||
| public visibilityCheck: boolean; | ||
| public timeout?: number; | ||
| public apiFnChain: string[]; | ||
| public needError: boolean; | ||
| public index: number; | ||
| public strictError: boolean; | ||
| } | ||
|
|
||
| export class WaitCommand extends ActionCommandBase { | ||
| public constructor(obj: object, testRun: TestRun); | ||
| public timeout: number; | ||
| } | ||
|
|
||
| export class DebugCommand extends ActionCommandBase { } | ||
| export class DebugCommand extends ActionCommandBase { | ||
| public constructor(obj: object, testRun: TestRun, validateProperties?: boolean); | ||
| public selector?: ExecuteClientFunctionCommand; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.