Skip to content

Commit

Permalink
Fix gem error in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robzolkos committed Jan 8, 2024
1 parent 1976876 commit 84f9f8a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432
run: bin/rails db:setup test test:system
run: |
gem install error_highlight -v 0.5.1
bin/rails db:setup test test:system
- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion test/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
driven_by :selenium_chrome_headless, using: :chrome, screen_size: [1400, 1400]
end
1 change: 1 addition & 0 deletions test/system/gemfiles_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class GemfilesTest < ApplicationSystemTestCase
setup do
skip "pending"
@gemfile = gemfiles(:one)
end

Expand Down
8 changes: 8 additions & 0 deletions test/system/home_page_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require "application_system_test_case"

class HomePageTest < ApplicationSystemTestCase
test "visiting the home page" do
visit root_path
assert_selector "h1", text: "Most Popular Gemfiles"
end
end

0 comments on commit 84f9f8a

Please sign in to comment.