summaryrefslogtreecommitdiff
path: root/features/steps/project/commits
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-08-13 15:27:36 -0700
committerStan Hu <stanhu@gmail.com>2017-08-13 15:27:36 -0700
commita7c1ce3fdb6842fe13f13bd059ee618b230d000a (patch)
treea9875547bd49c457d1ecbb7210cddd29d2845fef /features/steps/project/commits
parent93077d76f2e6f284f0b64c106c2c56d924ee0e99 (diff)
downloadgitlab-ce-a7c1ce3fdb6842fe13f13bd059ee618b230d000a.tar.gz
Fix Spinach spec for deleting branches
Diffstat (limited to 'features/steps/project/commits')
-rw-r--r--features/steps/project/commits/branches.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/features/steps/project/commits/branches.rb b/features/steps/project/commits/branches.rb
index ccaf3237815..080e59f789b 100644
--- a/features/steps/project/commits/branches.rb
+++ b/features/steps/project/commits/branches.rb
@@ -70,13 +70,12 @@ class Spinach::Features::ProjectCommitsBranches < Spinach::FeatureSteps
step "I click branch 'improve/awesome' delete link" do
page.within '.js-branch-improve\/awesome' do
- find('.btn-remove').click
- sleep 0.05
+ accept_alert { find('.btn-remove').click }
end
end
step "I should not see branch 'improve/awesome'" do
- expect(page.all(visible: true)).not_to have_content 'improve/awesome'
+ expect(page).to have_css('.js-branch-improve\\/awesome', visible: :hidden)
end
def select_branch(branch_name)