From 659e6f32d3d8e25f473c8a7413e5c6a0d19e41f6 Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Mon, 29 Jan 2018 08:37:56 -0700 Subject: Fix labels specs --- features/steps/project/issues/labels.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'features/steps/project/issues/labels.rb') diff --git a/features/steps/project/issues/labels.rb b/features/steps/project/issues/labels.rb index 196e0fff63a..4df96e081f9 100644 --- a/features/steps/project/issues/labels.rb +++ b/features/steps/project/issues/labels.rb @@ -15,8 +15,9 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps step 'I delete all labels' do page.within '.labels' do - page.all('.remove-row').each do - accept_confirm { first('.remove-row').click } + page.all('.label-list-item').each do + first('.remove-row').click + first(:link, 'Delete label').click end end end -- cgit v1.2.1