summaryrefslogtreecommitdiff
path: root/spec/features/projects/labels
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-06-07 11:57:09 +0100
committerSean McGivern <sean@gitlab.com>2016-06-07 14:01:30 +0100
commitee26c3cab4651c8876efc45b6a63539727e6a42e (patch)
treeda7df699ab6f78c39a562abe2307568f7c8dd7eb /spec/features/projects/labels
parenta04897b76b00e4a099faf55e30443378928e28e1 (diff)
downloadgitlab-ce-ee26c3cab4651c8876efc45b6a63539727e6a42e.tar.gz
Fix label order by priority on labels pageissue_14189
Diffstat (limited to 'spec/features/projects/labels')
-rw-r--r--spec/features/projects/labels/update_prioritization_spec.rb9
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