Skip to content

chore(protractor): support Protractor 5.x.x with the new webdriver-manager #372

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 1 commit into from
Jun 6, 2019

Conversation

cnishina
Copy link
Contributor

@cnishina cnishina commented Apr 25, 2019

  • During the static call (for 5.4.2 to built/lib/config) to
    getSeleniumDir, construct the update-config.json. This is just combining
    existing information from geckodriver.config.json, chrome.config.json
    and selenium-server.config.json. Important note that since this is just
    added in, this file will not be removed during the clean up and will
    always be overwritten when making the static call. If it is called 3
    times in the driverProviders/local test, it will rewrite the file 3
    times.
  • Add test for Protractor. For both version 5.4.2 and version 6+ calls
    to webdriver-manager.
  • Add jasmine protractor test to circle ci test.

@cnishina
Copy link
Contributor Author

cnishina commented Apr 25, 2019

JK. I looked at Protractor master branch.... I think I can fake in something to work. Maybe JS files in the lib/ that get copied to built/lib/config. This is not ready for prime time yet.

@cnishina cnishina removed the request for review from heathkit April 25, 2019 19:39
@cnishina cnishina changed the title chore(legacy): support Protractor 5.4.2 with the new webdriver-manager DO NOT REVIEW, WIP - chore(legacy): support Protractor 5.4.2 with the new webdriver-manager Apr 25, 2019
@cnishina cnishina changed the title DO NOT REVIEW, WIP - chore(legacy): support Protractor 5.4.2 with the new webdriver-manager chore(protractor): support Protractor 5.4.2 with the new webdriver-manager Apr 25, 2019
@cnishina
Copy link
Contributor Author

Okay this should be ready for review now. It creates the update-config.json file from the existing config files. The directories match: built/lib/ with a config.js file. And the update-config.json file when read and parsed to json has updateConfig.chrome.last, updateConfig.gecko.last, and updateConfig.standalone.last.

Note this always rewrites the file on every static call. I could check to see the age of the file but the max rewrite is 3 times. This isn't the best fix and will make it better if there is a problem.

@cnishina cnishina changed the title chore(protractor): support Protractor 5.4.2 with the new webdriver-manager chore(protractor): support Protractor 5.x.x with the new webdriver-manager Jun 5, 2019
…nager

- During the static call (for 5.4.2 to built/lib/config) to
getSeleniumDir, construct the update-config.json. This is just combining
existing information from geckodriver.config.json, chrome.config.json
and selenium-server.config.json. Important note that since this is just
added in, this file will not be removed during the clean up and will
always be overwritten when making the static call. If it is called 3
times in the driverProviders/local test, it will rewrite the file 3
times.
- Add test for Protractor. For both version 5.4.2 and version 6+ calls
to webdriver-manager.
- Add jasmine protractor test to circle ci test.
@cnishina cnishina merged commit af02414 into angular:master Jun 6, 2019
dgp1130 added a commit that referenced this pull request Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants