File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 bundle exec rails db:setup
4444 - name : Run RSpec
4545 run : |
46- bundle exec rspec
46+ bundle exec rspec spec/features/home_spec.rb
47+ - uses : actions/upload-artifact@v2
48+ if : failure()
49+ with :
50+ name : Screenshots and logs
51+ path : |
52+ tmp/capybara
53+ log
Original file line number Diff line number Diff line change 1717
1818 it "allows re-arranging the sub projects" , js : true do
1919 visit root_path
20+ save_screenshot
2021
2122 first = find ( "a" , text : sub_project1 . title )
2223 last = find ( "a" , text : sub_project3 . title )
2324
2425 # this will move `last` BEFORE `first`
26+ save_screenshot
2527 last . drag_to ( first )
26- expect ( page ) . to have_selector ( "#project_#{ project . id } .project-card.sorting" )
28+ save_screenshot
29+ sleep ( 0.1 )
30+ save_screenshot
2731 expect ( page ) . not_to have_selector ( "#project_#{ project . id } .project-card.sorting" )
32+ save_screenshot
2833
2934 expect ( sub_project1 . reload . position ) . to eq 2
3035 expect ( sub_project2 . reload . position ) . to eq 3
You can’t perform that action at this time.
0 commit comments