Skip to content

Commit

Permalink
debugging ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed May 13, 2024
1 parent c137a17 commit 49a7887
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ jobs:
bundler: 2.4.9
ruby-version: ${{ matrix.ruby }}
- run: ./test/bin/create-fake-js-package-managers ${{ matrix.js_package_manager.installer }}
- run: echo ${{ hashFiles('${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile.lock') }}
- run: echo ${{ github.workspace }}
- run: echo ${{ matrix.gemfile }}
- run: echo '${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile.lock')
- name: Save dummy app ruby gems to cache
uses: actions/cache@v3
with:
Expand Down
8 changes: 2 additions & 6 deletions test/react/rails/react_rails_ujs_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@ class ReactRailsUJSTest < ActionDispatch::IntegrationTest
SprocketsHelpers.when_available do
include Capybara::DSL

setup do
Capybara.current_driver = Capybara.javascript_driver
end

# Normalize for shakapacker check:
def assert_greeting(page, greeting)
assert page.has_content?(greeting), <<~MSG
#{page.body}
#{page.driver.browser.manage.logs.get(:browser).inspect}
#{page.driver.browser.logs.get(:browser).inspect}
MSG
end

def refute_greeting(page, greeting)
assert page.has_no_content?(greeting), <<~MSG
#{page.body}
#{page.driver.browser.manage.logs.get(:browser).inspect}
#{page.driver.browser.logs.get(:browser).inspect}
MSG
end

Expand Down

0 comments on commit 49a7887

Please sign in to comment.