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

Testing tools improvements #3062

Merged
merged 7 commits into from
Jan 31, 2019

Conversation

kennyadsl
Copy link
Member

Description

This PR:

  • bumps Capybara to 3.x (we still are on 2.x), here's the upgrading guide
  • removes Poltergeist from Gemfile, which is not used anymore
  • switches Capybara server to Puma, to reflect the new standard in both Capybara and Rails. I don't think we'll have some real advantage using Puma over WEBRick, but this is the new standard and probably what all developers expect (I don't have strong opinions here).

Checklist:

  • Pull Request guidelines are respected
  • Documentation/Readme have been updated accordingly
  • Changes are covered by tests (if possible)
  • Each commit has a meaningful message attached that described WHAT changed, and WHY

@kennyadsl kennyadsl self-assigned this Jan 30, 2019
It tests that an alert is displayed in the browser to inform the
admin user that a destination stock location has to be selected.

This was not possible with poltergeist but we now only use selenium
with chrome headless.
We are no loger using it and there's no need to keep that
dependency in our Gemfile.
In Capybara 3 the deafult server is Puma, that we don't have (still?)
in Solidus. For now we can manually switch it back to Webrick.
Just to have all items uniform
With Capybara 3 texts are no more fully normalized but we have
specs when this is required since there are special chars into
the strings we are checking against.

More info here:
https://github.com/teamcapybara/capybara/blob/master/UPGRADING.md#node
It is the default for Rails and for Capybara 3.x.
Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

🎉 Woo!

@kennyadsl kennyadsl merged commit a7e2c6d into solidusio:master Jan 31, 2019
@kennyadsl kennyadsl deleted the kennyadsl/testing-tool-bump branch January 31, 2019 17:06
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.

4 participants