Skip to content

Commit

Permalink
send selenium logs to gha artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rob committed Aug 23, 2024
1 parent 8ffaac2 commit fb396f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ jobs:
- name: Build CSS
run: bin/rails tailwindcss:build

- name: Setup ssh session
uses: Warpbuilds/action-debugger@v1.3
# - name: Setup ssh session
# uses: Warpbuilds/action-debugger@v1.3

- name: Run system tests
run: |
echo -e "###\n###\n###\n### NOTICE: If these tests fail because of Net::ReadTimeout then re-run the test suite. I can't figure out this sporadic failure.\n###\n###\n###"
sed -i 's/hoverOnlyWhenSupported: true/hoverOnlyWhenSupported: false/' config/tailwind.config.js
bin/rails test:system
mkdir -p tmp/screenshots
touch tmp/screenshots/chromedriver.log
bin/rails test:system 2> tmp/screenshots/selenium.log
- name: Upload screenshots
uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def self.test(name, &block)
begin
super(name, &block)
rescue Net::ReadTimeout => e
puts "Net::ReadTimeout: #{e}"
debugger
puts "(caught) Net::ReadTimeout: #{e}"
# debugger
end
end

Expand Down

0 comments on commit fb396f0

Please sign in to comment.