Skip to content
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

Fix initial CI issues to get a green build. #14

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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