port specs

This commit is contained in:
Luke Bennett 2018-08-02 01:01:45 +01:00
parent 493b225b97
commit 9b48c6886e
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A
2 changed files with 8 additions and 5 deletions

View file

@ -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

View file

@ -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