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

port specs

parent 493b225b
......@@ -17,7 +17,9 @@ describe 'Project remote mirror', :feature do
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
......@@ -27,7 +29,9 @@ describe 'Project remote mirror', :feature do
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
......
......@@ -129,9 +129,8 @@ describe 'Projects > Settings > Repository settings' do
visit project_settings_repository_path(project)
end
it 'shows push mirror settings' do
expect(page).to have_selector('#project_remote_mirrors_attributes_0_enabled')
expect(page).to have_selector('#project_remote_mirrors_attributes_0_url')
it 'shows push mirror settings', :js do
expect(page).to have_selector('#mirror_direction')
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