Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/rails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: bin/rails db:schema:load
# Add or replace test runners here
- name: Run tests
run: bin/rake
run: bin/rails test:system test

lint:
runs-on: ubuntu-latest
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, using: :headless_chrome, screen_size: [1400, 1400]
end
10 changes: 7 additions & 3 deletions test/system/messages_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ class MessagesTest < ApplicationSystemTestCase
click_link @message2.attachments_attachments.first.blob.filename.to_s
end

test "visiting the index" do
test 'visiting the search page, and searching a message' do
visit messages_url
assert_selector "h1", text: "Messages"
end
assert_selector "h1", text: "blade.ruby-lang.org"

fill_in :q, with: @message1.body
click_button 'Search'

assert_content @message1.subject
end
end