Skip to content

Commit

Permalink
Fix flickering package feature tests
Browse files Browse the repository at this point in the history
Fixes #6034
  • Loading branch information
bgeuken committed May 19, 2019
1 parent b624f2a commit d84e153
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/api/spec/bootstrap/features/webui/packages_spec.rb
Expand Up @@ -58,8 +58,6 @@
end

scenario 'deleting a package' do
skip('FIXME: This test is flickering hard.')

login user
visit package_show_path(package: package, project: user.home_project)
click_link('Delete package')
Expand All @@ -69,7 +67,7 @@
click_button('Delete')
end

expect(find('#flash-messages')).to have_text('Package was successfully removed.')
expect(page).to have_css('#flash', text: 'Package was successfully removed.')
end

scenario 'requesting package deletion' do
Expand All @@ -90,8 +88,6 @@
end

scenario "changing the package's devel project" do
skip('FIXME: This test is flickering hard.')

login user

visit package_show_path(package: package_with_develpackage, project: user.home_project)
Expand All @@ -101,10 +97,9 @@
within('#change-devel-request-modal') do
fill_in('devel_project', with: third_project.name)
fill_in('description', with: 'Hey, why not?')
click_button('Accept')
click_button('Create')
end

find('#flash-messages', visible: false)
request = BsRequest.where(description: 'Hey, why not?', creator: user.login, state: 'review')
expect(request).to exist
expect(page).to have_current_path("/request/show/#{request.first.number}")
Expand Down

0 comments on commit d84e153

Please sign in to comment.