Skip to content
Snippets Groups Projects
Commit bfd33645 authored by Dimitrie Hoekstra's avatar Dimitrie Hoekstra Committed by Sean McGivern
Browse files

Rename priority sorting option to label priority

parent e84afa8b
No related branches found
No related tags found
Loading
Loading
Loading
@@ -50,7 +50,7 @@ module SortingHelper
end
 
def sort_title_priority
'Priority'
'Label priority'
end
 
def sort_title_oldest_updated
Loading
Loading
---
title: Rename priority sorting option to label priority
merge_request:
author:
Loading
Loading
@@ -32,7 +32,7 @@ feature 'Issue prioritization', feature: true do
visit namespace_project_issues_path(project.namespace, project, sort: 'priority')
 
# Ensure we are indicating that issues are sorted by priority
expect(page).to have_selector('.dropdown-toggle', text: 'Priority')
expect(page).to have_selector('.dropdown-toggle', text: 'Label priority')
 
page.within('.issues-holder') do
issue_titles = all('.issues-list .issue-title-text').map(&:text)
Loading
Loading
@@ -70,7 +70,7 @@ feature 'Issue prioritization', feature: true do
login_as user
visit namespace_project_issues_path(project.namespace, project, sort: 'priority')
 
expect(page).to have_selector('.dropdown-toggle', text: 'Priority')
expect(page).to have_selector('.dropdown-toggle', text: 'Label priority')
 
page.within('.issues-holder') do
issue_titles = all('.issues-list .issue-title-text').map(&:text)
Loading
Loading
Loading
Loading
@@ -56,8 +56,8 @@ describe "Dashboard > User sorts todos", feature: true do
expect(results_list.all('p')[4]).to have_content("merge_request_1")
end
 
it "sorts by priority" do
click_link "Priority"
it "sorts by label priority" do
click_link "Label priority"
 
results_list = page.find('.todos-list')
expect(results_list.all('p')[0]).to have_content("issue_3")
Loading
Loading
@@ -85,8 +85,8 @@ describe "Dashboard > User sorts todos", feature: true do
visit dashboard_todos_path
end
 
it "doesn't mix issues and merge requests priorities" do
click_link "Priority"
it "doesn't mix issues and merge requests label priorities" do
click_link "Label priority"
 
results_list = page.find('.todos-list')
expect(results_list.all('p')[0]).to have_content("issue_1")
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment