Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

fix(export): export selenium-webdriver #3433

Merged
merged 8 commits into from
Aug 4, 2016

Conversation

cnishina
Copy link
Contributor

@cnishina cnishina commented Aug 1, 2016

  • rename to ProtractorBrowser to be able to export selenium-webdriver Browser as Browser
  • export all selenium-webdriver items and subfolders in ptor
  • update dependency tests for selenium
  • add tests when protractor is installed

closes #3427
closes #2092

@cnishina cnishina changed the title chore(selenium): export selenium-webdriver fix(export): export selenium-webdriver Aug 1, 2016
@cnishina cnishina added this to the 4.0.3 milestone Aug 1, 2016
@cnishina
Copy link
Contributor Author

cnishina commented Aug 2, 2016

Needs testing.

@cnishina
Copy link
Contributor Author

cnishina commented Aug 2, 2016

ensure globals are exported from the namespace #3437

@cnishina cnishina force-pushed the 403_selenium_webdriver branch 7 times, most recently from db2acb5 to 2aa7c12 Compare August 2, 2016 22:51
export var ExpectedConditions: ProtractorExpectedConditions =
global['protractor']['ExpectedConditions'];
export let protractor: Ptor = global['protractor'];
export let browser: ProtractorBrowser = global['protractor']['browser'];
Copy link
Member

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'];?

Copy link
Contributor Author

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']

Copy link
Member

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.

}

export var Protractor = new Ptor();
Copy link
Member

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();

@juliemr
Copy link
Member

juliemr commented Aug 4, 2016

One more thing, then LGTM

- 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
@cnishina cnishina force-pushed the 403_selenium_webdriver branch from 885e30f to 481ed2f Compare August 4, 2016 20:49
@cnishina cnishina merged commit 5f690fe into angular:master Aug 4, 2016
@cnishina cnishina deleted the 403_selenium_webdriver branch August 16, 2016 20:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants