Commit e238de2a authored by Thomas Randolph's avatar Thomas Randolph

Update existing tests for file-by-file nav

parent 13e2f375
......@@ -27,9 +27,10 @@ RSpec.describe 'User views diffs file-by-file', :js do
page.within('#diffs') do
expect(page).not_to have_content('This diff is collapsed')
click_button 'Next'
find('.page-link.next-page-item').click
expect(page).not_to have_content('This diff is collapsed')
expect(page).to have_selector('.diff-file .file-title', text: 'large_diff_renamed.md')
end
end
end
......@@ -25,7 +25,7 @@ RSpec.describe 'User views diffs file-by-file', :js do
expect(page).to have_selector('.file-holder', count: 1)
expect(page).to have_selector('.diff-file .file-title', text: '.DS_Store')
click_button 'Next'
find('.page-link.next-page-item').click
expect(page).to have_selector('.file-holder', count: 1)
expect(page).to have_selector('.diff-file .file-title', text: '.gitignore')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment