Commit 766b0e7d authored by Clement Ho's avatar Clement Ho

Rename spec instances of btn-default to btn-secondary

parent aae1b23b
...@@ -54,7 +54,7 @@ describe 'Merge request > User sees versions', :js do ...@@ -54,7 +54,7 @@ describe 'Merge request > User sees versions', :js do
describe 'switch between versions' do describe 'switch between versions' do
before do before do
page.within '.mr-version-dropdown' do page.within '.mr-version-dropdown' do
find('.btn-default').click find('.btn-secondary').click
click_link 'version 1' click_link 'version 1'
end end
...@@ -93,7 +93,7 @@ describe 'Merge request > User sees versions', :js do ...@@ -93,7 +93,7 @@ describe 'Merge request > User sees versions', :js do
describe 'compare with older version' do describe 'compare with older version' do
before do before do
page.within '.mr-version-compare-dropdown' do page.within '.mr-version-compare-dropdown' do
find('.btn-default').click find('.btn-secondary').click
click_link 'version 1' click_link 'version 1'
end end
...@@ -151,7 +151,7 @@ describe 'Merge request > User sees versions', :js do ...@@ -151,7 +151,7 @@ describe 'Merge request > User sees versions', :js do
describe 'compare with same version' do describe 'compare with same version' do
before do before do
page.within '.mr-version-compare-dropdown' do page.within '.mr-version-compare-dropdown' do
find('.btn-default').click find('.btn-secondary').click
click_link 'version 1' click_link 'version 1'
end end
end end
...@@ -162,7 +162,7 @@ describe 'Merge request > User sees versions', :js do ...@@ -162,7 +162,7 @@ describe 'Merge request > User sees versions', :js do
end end
page.within '.mr-version-dropdown' do page.within '.mr-version-dropdown' do
find('.btn-default').click find('.btn-secondary').click
click_link 'version 1' click_link 'version 1'
end end
expect(page).to have_content '0 changed files' expect(page).to have_content '0 changed files'
...@@ -172,7 +172,7 @@ describe 'Merge request > User sees versions', :js do ...@@ -172,7 +172,7 @@ describe 'Merge request > User sees versions', :js do
describe 'compare with newer version' do describe 'compare with newer version' do
before do before do
page.within '.mr-version-compare-dropdown' do page.within '.mr-version-compare-dropdown' do
find('.btn-default').click find('.btn-secondary').click
click_link 'version 2' click_link 'version 2'
end end
end end
...@@ -183,7 +183,7 @@ describe 'Merge request > User sees versions', :js do ...@@ -183,7 +183,7 @@ describe 'Merge request > User sees versions', :js do
end end
page.within '.mr-version-dropdown' do page.within '.mr-version-dropdown' do
find('.btn-default').click find('.btn-secondary').click
click_link 'version 1' click_link 'version 1'
end end
......
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