-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Moved E2E Tests To Typescript #343
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
Conversation
0ed1bdb to
7469a0f
Compare
| class addAtAddressInstance extends EventEmitter { | ||
| command (address, isValidFormat, isValidChecksum) { | ||
| this.api.perform((done) => { | ||
| command (this: NightwatchBrowser, address: string, isValidFormat: boolean, isValidChecksum: boolean): NightwatchBrowser { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds like risky to name a variable this, could be addressed in an another PR..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not a variable. this is the context which the command function uses. It is normally passed by the caller of the command function from nightwatch. Also, passing parameters into the command function without specifying this works perfectly. It just uses the default context for this which is the addAtAddressInstance class for this example.
| @@ -0,0 +1,20 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove all the reports files or is this necessary to keep them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we don't need the report files. But git ignores the directories during commit because they are empty. We will need something in it at least to get git to commit the directory.
… to new selenium config
62de69a to
47da15d
Compare
No description provided.