Commit 9b48c688 authored by Luke Bennett's avatar Luke Bennett

port specs

parent 493b225b
...@@ -17,7 +17,9 @@ describe 'Project remote mirror', :feature do ...@@ -17,7 +17,9 @@ describe 'Project remote mirror', :feature do
visit project_mirror_path(project) visit project_mirror_path(project)
expect(page).to have_content('The remote repository failed to update.') row = first('.js-mirrors-table-body tr')
expect(row).to have_content('Error')
expect(row).to have_content('Never')
end end
end end
...@@ -27,7 +29,9 @@ describe 'Project remote mirror', :feature do ...@@ -27,7 +29,9 @@ describe 'Project remote mirror', :feature do
visit project_mirror_path(project) visit project_mirror_path(project)
expect(page).to have_content('The remote repository failed to update 5 minutes ago.') row = first('.js-mirrors-table-body tr')
expect(row).to have_content('Error')
expect(row).to have_content('5 minutes ago')
end end
end end
end end
......
...@@ -129,9 +129,8 @@ describe 'Projects > Settings > Repository settings' do ...@@ -129,9 +129,8 @@ describe 'Projects > Settings > Repository settings' do
visit project_settings_repository_path(project) visit project_settings_repository_path(project)
end end
it 'shows push mirror settings' do it 'shows push mirror settings', :js do
expect(page).to have_selector('#project_remote_mirrors_attributes_0_enabled') expect(page).to have_selector('#mirror_direction')
expect(page).to have_selector('#project_remote_mirrors_attributes_0_url')
end end
end end
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