diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-12-07 13:47:26 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-12-07 13:47:26 +0000 |
commit | f8fdf93ec94b1ad43141a1463a6793082750d86e (patch) | |
tree | 5d38199ade46feb3410ba2be99e518529674a12a /spec/features/projects | |
parent | 25cd8fb5471ed32c6ce565e2a1027f591091f19f (diff) | |
download | gitlab-ce-f8fdf93ec94b1ad43141a1463a6793082750d86e.tar.gz |
Show primary button when all labels are prioritized
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/labels/update_prioritization_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/features/projects/labels/update_prioritization_spec.rb b/spec/features/projects/labels/update_prioritization_spec.rb index 996040fde02..055a0c83a11 100644 --- a/spec/features/projects/labels/update_prioritization_spec.rb +++ b/spec/features/projects/labels/update_prioritization_spec.rb @@ -115,6 +115,21 @@ describe 'Prioritize labels' do end end + it 'user can see a primary button when there are only prioritized labels', :js do + visit project_labels_path(project) + + page.within('.other-labels') do + all('.js-toggle-priority').each do |el| + el.click + end + wait_for_requests + end + + page.within('.breadcrumbs-container') do + expect(page).to have_link('New label') + end + end + it 'shows a help message about prioritized labels' do visit project_labels_path(project) |