Skip to content
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

Adding OAuth2 authorization code e2e test. Closes #359. #371

Merged
merged 5 commits into from
Aug 8, 2017

Conversation

kevinswiber
Copy link
Member

No description provided.

});

const driver = new webdriver.Builder()
.forBrowser('chrome')
Copy link
Contributor

@DrMegavolt DrMegavolt Aug 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we should use phantomjs as headless driver to no have chrome pop up.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I see headless mode, still it requires chrome to be installed. phantomjs is just a dev dependency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DrMegavolt, chromedriver is just a dev dependency, too. However, CircleCI is bombing on it for some reason, complaining about the chromedriver version. Might try phantom to see if it fairs better on CI. (https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/phantomjs.html)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kevinswiber chromedriver is a plugin to selenium that operates on real chrome browser. you need to have chrome on it's own installed. PhantomJS is a browser on it's own not a plugin, so when you have phantomjs plugin for selenium that operates against phantomjs browser it will work. And PhantomJS browser can be a dependency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to have worked. Thanks!

@codecov
Copy link

codecov bot commented Aug 8, 2017

Codecov Report

Merging #371 into master will increase coverage by 0.11%.
The diff coverage is 95.48%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #371      +/-   ##
==========================================
+ Coverage   90.84%   90.96%   +0.11%     
==========================================
  Files         188      193       +5     
  Lines        8062     8199     +137     
==========================================
+ Hits         7324     7458     +134     
- Misses        738      741       +3
Impacted Files Coverage Δ
test/fixtures/authorization-code/models/users.js 100% <100%> (ø)
.../fixtures/authorization-code/models/credentials.js 100% <100%> (ø)
...fixtures/authorization-code/models/applications.js 100% <100%> (ø)
test/e2e/oauth2-authorization-code.js 95.38% <95.38%> (ø)
bin/index.js 100% <0%> (ø)
lib/services/auth.js 91.42% <0%> (+1.42%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1bef042...c3e2371. Read the comment docs.

Copy link
Contributor

@DrMegavolt DrMegavolt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Looks awesome.

@kevinswiber kevinswiber merged commit 2353d5c into master Aug 8, 2017
@kevinswiber kevinswiber deleted the test/oauth-auth-code-e2e branch August 8, 2017 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants