-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add gems, update keycloak config and add sample test * add chrome to github action * update config * update chonfig * debug * use dokcerimage for chrome * update config * skip tests for old keycloak * remove useless chrome container * remove useless config * restore old gemfile and clean up rails_helper * update gemfile * clean up rails_helper --------- Co-authored-by: Yanick Minder <[email protected]>
- Loading branch information
1 parent
5494691
commit 6957637
Showing
8 changed files
with
80 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
is_ci = ENV.fetch('IS_CI', false) | ||
|
||
Capybara.register_driver :headless_chrome do |app| | ||
options = Selenium::WebDriver::Chrome::Options.new( | ||
args: %w[headless no-sandbox disable-gpu disable-dev-shm-usage], | ||
) | ||
|
||
Capybara::Selenium::Driver.new( | ||
app, | ||
browser: :chrome, | ||
options: | ||
) | ||
end | ||
|
||
RSpec.configure do |config| | ||
if is_ci | ||
config.before(:each, type: :system) do | ||
driven_by :headless_chrome | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require 'rails_helper' | ||
|
||
describe 'Check if people are listed', type: :system do | ||
it 'shows the people links' do | ||
visit people_path | ||
expect(page).to have_css('h1 a[href^="/people/"]', minimum: 2) | ||
end | ||
end |