-
Notifications
You must be signed in to change notification settings - Fork 21
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
Actually get dummy test app running properly and passing feature tests #407
Conversation
deacf46
to
febaa8d
Compare
* Configure dummy test all with the test controller/views for demo under test * properly set up sprockets for bootstrap 4 to include JS in dummy app * properly get all dummy app dependencies set up -- this is the weirdest most confusing part * dependencies are actually listed in .gemspec as development dependencies * but may also need to be require'd in application.rb, which would normally happen automatically if they were in a real Gemfile * We give up on being able to test both bootstrap 3 and 4 -- that's not really tenable with the dummy app approach, since they use different gems entirely, and different local CSS files. We only test bootstrap 4 now. * Actually enable the formerly disabled feature tests!
febaa8d
to
d7db9f6
Compare
Ok getting very close! But we were trying to configure browse_everything_providers.yml, under test, with a But it can only take an absolute path? And we need to commit to repo... where the absolute path is going to be different depending on where the repo is checked out, etc. Hmm. We may expand it to take a relative path (to CWD)... if opted into? |
9ccef02
to
b86417d
Compare
If set to true, then `home` can be a relative path (relative to Rails.root). The use case is mainly for CI/dummy test app setup. Added new param to make it opt-in, to make sure it's completely backwards compat and does not introduce any potential security issues -- you need to opt in to new supported behavior with new allow_relative_home param.
b86417d
to
c03a18a
Compare
…d since we've switched to dummy_test_app that has versions of these files committed
OK building on top of #406 this is now ready to review -- feature tests re-enabled and passing, on our new checked-in dummy app! |
@@ -2,6 +2,7 @@ | |||
version: 2.1 | |||
orbs: | |||
samvera: samvera/circleci-orb@1.0 | |||
browser-tools: circleci/browser-tools@1.1 |
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.
👍
@@ -19,6 +20,8 @@ jobs: | |||
environment: | |||
RAILS_VERSION: << parameters.rails_version >> | |||
steps: | |||
- browser-tools/install-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.
👍
@@ -3,7 +3,8 @@ | |||
# The file_system provider can be a path to any directory on the server where your application is running. | |||
# | |||
file_system: | |||
home: /Users/jrochkind/code/browse-everything/.internal_test_app |
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.
I am sorry for missing this line within a previous pull request review.
@@ -7,7 +7,7 @@ | |||
|
|||
shared_examples 'browseable files' do | |||
# This is a work-around until the support for Webpacker is resolved | |||
xit 'selects files from the filesystem' do | |||
it 'selects files from the filesystem' do |
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.
👍
@@ -1,7 +1,7 @@ | |||
# frozen_string_literal: true | |||
|
|||
describe 'Compiling the stylesheets', type: :feature, js: true do | |||
xit 'does not raise errors' do | |||
it 'does not raise errors' do |
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.
👍
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.
This is phenomenal, thank you very much again for undertaking this much needed improvement!
Configure dummy test all with the test controller/views for demo under test
properly set up sprockets for bootstrap 4 to include JS in dummy app
properly get all dummy app dependencies set up -- this is the weirdest most confusing part
in a real Gemfile
We give up on being able to test both bootstrap 3 and 4 -- that's not really tenable with the dummy app approach, since they use different gems entirely, and different local CSS files. We only test bootstrap 4 now.
Actually enable the formerly disabled feature tests!
Includes in this PR one commit:
FileSystem driver has new
allow_relative_home
paramIf set to true, then
home
can be a relative path (relative to Rails.root).The use case is mainly for CI/dummy test app setup. Added new param to make it opt-in, to make sure it's completely backwards compat and does not introduce any potential security issues -- you need to opt in to new supported behavior with new allow_relative_home param.