diff options
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/labels/update_prioritization_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/features/projects/labels/update_prioritization_spec.rb b/spec/features/projects/labels/update_prioritization_spec.rb index 2a0bf6548db..8550d279d09 100644 --- a/spec/features/projects/labels/update_prioritization_spec.rb +++ b/spec/features/projects/labels/update_prioritization_spec.rb @@ -55,7 +55,7 @@ feature 'Prioritize labels', feature: true do end end - scenario 'user can sort prioritized labels', js: true do + scenario 'user can sort prioritized labels and persist across reloads', js: true do bug = create(:label, title: 'bug', priority: 1) wontfix = create(:label, title: 'wontfix', priority: 2) @@ -75,6 +75,13 @@ feature 'Prioritize labels', feature: true do expect(first('li')).to have_content('wontfix') expect(page.all('li').last).to have_content('bug') end + + visit current_url + + page.within('.prioritized-labels') do + expect(first('li')).to have_content('wontfix') + expect(page.all('li').last).to have_content('bug') + end end end |