-
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
Changes from all commits
d18350a
d7db9f6
c03a18a
b15d965
bcd2988
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
version: 2.1 | ||
orbs: | ||
samvera: samvera/circleci-orb@1.0 | ||
browser-tools: circleci/browser-tools@1.1 | ||
|
||
jobs: | ||
build: | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
||
- samvera/cached_checkout | ||
|
||
- run: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
//= link_tree ../images | ||
//= link_directory ../javascripts .js | ||
//= link_directory ../stylesheets .css | ||
//= link application.css | ||
//= link application.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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. |
||
allow_relative_home: true | ||
home: ./ | ||
# dropbox: | ||
# client_id: YOUR_DROPBOX_APP_KEY | ||
# client_secret: YOUR_DROPBOX_APP_SECRET | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
Rails.application.routes.draw do | ||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html | ||
mount BrowseEverything::Engine => '/browse' | ||
|
||
# Custom actions we use for feature testing | ||
root :to => "file_handler#index" | ||
get '/main', :to => "file_handler#main" | ||
post '/file', :to => "file_handler#update" | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
click_button('Browse') | ||
wait_for_ajax | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
visit '/' | ||
expect(page).not_to have_content 'Sass::SyntaxError' | ||
end | ||
|
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.
👍