Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-11 15:09:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-11 15:09:26 +0300
commitc9687bdf58e9d4a9c3942f587bd4841f42e3b5de (patch)
treea60a2e20f152483be6a92bacdf10564bbc96c664 /spec/features/boards
parent3f3e4bcc50a3280d03299c2c263eafd9c8e3bd7b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/boards')
-rw-r--r--spec/features/boards/issue_ordering_spec.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/boards/issue_ordering_spec.rb b/spec/features/boards/issue_ordering_spec.rb
index 62abd914fcb..4c723ddf324 100644
--- a/spec/features/boards/issue_ordering_spec.rb
+++ b/spec/features/boards/issue_ordering_spec.rb
@@ -47,6 +47,31 @@ describe 'Issue Boards', :js do
end
end
+ context 'closed issues' do
+ let!(:issue7) { create(:closed_issue, project: project, title: 'Closed issue 1', closed_at: 1.day.ago) }
+ let!(:issue8) { create(:closed_issue, project: project, title: 'Closed issue 2', closed_at: 1.week.ago) }
+ let!(:issue9) { create(:closed_issue, project: project, title: 'Closed issue 3', closed_at: 2.weeks.ago) }
+
+ before do
+ visit project_board_path(project, board)
+ wait_for_requests
+
+ expect(page).to have_selector('.board', count: 3)
+ end
+
+ it 'orders issues by closed_at' do
+ wait_for_requests
+
+ page.within(find('.board:nth-child(3)')) do
+ first, second, third = all('.board-card').to_a
+
+ expect(first).to have_content(issue7.title)
+ expect(second).to have_content(issue8.title)
+ expect(third).to have_content(issue9.title)
+ end
+ end
+ end
+
context 'ordering in list' do
before do
visit project_board_path(project, board)