port specs
This commit is contained in:
parent
493b225b97
commit
9b48c6886e
2 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue