-
Notifications
You must be signed in to change notification settings - Fork 473
spec: added chrome headless as default js runner #1866
Conversation
d074626
to
80c8e0a
Compare
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.
In the commit message you are talking about PhantomJS being discontinued, wasn't it Poltergeist? If not, then can you remove the lines where we download phantomjs in Travis?
Dockerfile
Outdated
@@ -33,4 +34,11 @@ RUN zypper addrepo https://download.opensuse.org/repositories/devel:languages:go | |||
libtool m4 make makeinfo && \ | |||
zypper clean -a | |||
|
|||
# Add Google Chrome repo and install it | |||
RUN zypper -n ar https://dl.google.com/linux/chrome/rpm/stable/x86_64 Chrome && \ |
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.
Merge with the above RUN
block.
gem "codeclimate-test-reporter", group: :test, require: nil | ||
gem "capybara-screenshot", "~> 1.0.0" | ||
gem "chromedriver-helper" | ||
gem "codeclimate-test-reporter", require: false |
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.
Why did you remove the test
group here ?
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.
Because it's already inside of the test group.
spec/support/capybara.rb
Outdated
end | ||
end | ||
|
||
# HACK: when running tests inside of a container we should use poltergeist |
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.
Maybe this comment should go on the line where you set JAVASCRIPT_DRIVER
.
👍 |
d62378f
to
6e680c1
Compare
So far the feature tests with js enabled were running through poltergeist driver. As we know, PhantomJS was discontinued and that's bad. PhantomJS was far from perfect and we've had a lot of flaky issues with it. Even knowing that most of those flaky issues were our fault, it's always good to improve our workflow whenever possible. Based on this we are adding chrome headless as our default js runner for our feature tests. Unfortunately we had to keep poltergeist for one scenario that we couldn't make chrome headless work properly. That scenario is when the dev runs the feature tests inside of the container. For bare metal and travis, chrome headless works like a charm. Signed-off-by: Vítor Avelino <vavelino@suse.com>
6e680c1
to
d534723
Compare
So far the feature tests with js enabled were running through
poltergeist driver. As we know, PhantomJS was discontinued and
that's bad. PhantomJS was far from perfect and we've had a lot
of flaky issues with it.
Even knowing that most of those flaky issues were our fault, it's
always good to improve our workflow whenever possible. Based on this we
are adding chrome headless as our default js runner for our feature
tests.
Unfortunately we had to keep poltergeist for one scenario that we
couldn't make chrome headless work properly. That scenario is when the
dev runs the feature tests inside of the container. For bare metal and
travis, chrome headless works like a charm.
Signed-off-by: Vítor Avelino vavelino@suse.com