Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/admin/admin_labels_spec.rb')
-rw-r--r--spec/features/admin/admin_labels_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/features/admin/admin_labels_spec.rb b/spec/features/admin/admin_labels_spec.rb
index 68d63ac321e..47dc8577037 100644
--- a/spec/features/admin/admin_labels_spec.rb
+++ b/spec/features/admin/admin_labels_spec.rb
@@ -50,6 +50,10 @@ RSpec.describe 'admin issues labels', feature_category: :team_planning do
expect(page).to have_content("Define your default set of project labels")
expect(page).not_to have_content('bug')
expect(page).not_to have_content('feature_label')
+
+ page.within '.js-admin-labels-count' do
+ expect(page).to have_content('0')
+ end
end
end
@@ -113,7 +117,7 @@ RSpec.describe 'admin issues labels', feature_category: :team_planning do
click_link 'Delete label'
end
- expect(page).to have_content('Label was removed')
+ expect(page).to have_content("#{bug_label.title} was removed").and have_no_content("#{bug_label.title}</span>")
end
end
end