-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix(export): export selenium-webdriver #3433
Conversation
Needs testing. |
|
db2acb5
to
2aa7c12
Compare
export var ExpectedConditions: ProtractorExpectedConditions = | ||
global['protractor']['ExpectedConditions']; | ||
export let protractor: Ptor = global['protractor']; | ||
export let browser: ProtractorBrowser = global['protractor']['browser']; |
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 not do: export let browser: ProtractorBrowser = protractor.['browser'];
?
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.
Yes. protractor.browser
or protractor['browser']
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.
That seems simpler, let's change to that then.
79e4339
to
4801b25
Compare
} | ||
|
||
export var Protractor = new Ptor(); |
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.
I think this should be lowercase, since it's an instance.
export var protractor = new Ptor();
One more thing, then LGTM |
- rename to ProtractorBrowser to be able to export selenium-webdriver Browser as Browser
…vascript global objects
- adds missing npm run tsc to spec/install/package.json - checked that the objects exist under the protractor namespace closes angular#2092
- globals to use protractor.browser instead of global['protractor']['browser'] - set subfolders as part of a utils object - clean up tests (mocks and typings clean up) - fix typo util should be until with a missing until test
885e30f
to
481ed2f
Compare
closes #3427
closes #2092