Fix spec/features/projects/branches_spec
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8666
This commit is contained in:
parent
7e83f244ca
commit
8aaaefa5f6
|
@ -29,7 +29,7 @@ describe 'Branches' do
|
|||
it 'sorts the branches by name' do
|
||||
visit project_branches_path(project)
|
||||
|
||||
click_button "Name" # Open sorting dropdown
|
||||
click_button "Last updated" # Open sorting dropdown
|
||||
click_link "Name"
|
||||
|
||||
sorted = repository.branches_sorted_by(:name).first(20).map do |branch|
|
||||
|
@ -41,7 +41,7 @@ describe 'Branches' do
|
|||
it 'sorts the branches by last updated' do
|
||||
visit project_branches_path(project)
|
||||
|
||||
click_button "Name" # Open sorting dropdown
|
||||
click_button "Last updated" # Open sorting dropdown
|
||||
click_link "Last updated"
|
||||
|
||||
sorted = repository.branches_sorted_by(:updated_desc).first(20).map do |branch|
|
||||
|
@ -53,7 +53,7 @@ describe 'Branches' do
|
|||
it 'sorts the branches by oldest updated' do
|
||||
visit project_branches_path(project)
|
||||
|
||||
click_button "Name" # Open sorting dropdown
|
||||
click_button "Last updated" # Open sorting dropdown
|
||||
click_link "Oldest updated"
|
||||
|
||||
sorted = repository.branches_sorted_by(:updated_asc).first(20).map do |branch|
|
||||
|
|
Loading…
Reference in New Issue