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 d66f151
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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/[email protected]
# - name: Setup ssh session
# uses: Warpbuilds/[email protected]

- 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
2 changes: 1 addition & 1 deletion test/application_system_test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def self.test(name, &block)
super(name, &block)
rescue Net::ReadTimeout => e
puts "Net::ReadTimeout: #{e}"
debugger
# debugger
end
end

Expand Down

0 comments on commit d66f151

Please sign in to comment.