From 033d6f4eb1da6f5e42212cf344548a5e61066a69 Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Tue, 12 Aug 2014 13:52:49 +0200 Subject: [PATCH] Improve specs --- .../work_packages/work_package_query_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/features/accessibility/work_packages/work_package_query_spec.rb b/spec/features/accessibility/work_packages/work_package_query_spec.rb index d182e580cf..40ad440be3 100644 --- a/spec/features/accessibility/work_packages/work_package_query_spec.rb +++ b/spec/features/accessibility/work_packages/work_package_query_spec.rb @@ -148,7 +148,7 @@ describe 'Work package index accessibility', :type => :feature do describe 'id column' do let(:link_caption) { '#' } - let(:column_header_selector) { 'table.workpackages-table th.checkbox + th' } + let(:column_header_selector) { 'table.workpackages-table th:nth-of-type(2)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column' @@ -156,7 +156,7 @@ describe 'Work package index accessibility', :type => :feature do describe 'type column' do let(:link_caption) { 'Type' } - let(:column_header_selector) { 'table.workpackages-table th.checkbox + th + th' } + let(:column_header_selector) { 'table.workpackages-table th:nth-of-type(3)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column' @@ -164,7 +164,7 @@ describe 'Work package index accessibility', :type => :feature do describe 'status column' do let(:link_caption) { 'Status' } - let(:column_header_selector) { 'table.workpackages-table th.checkbox + th + th + th' } + let(:column_header_selector) { 'table.workpackages-table th:nth-of-type(4)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column' @@ -172,7 +172,7 @@ describe 'Work package index accessibility', :type => :feature do describe 'priority column' do let(:link_caption) { 'Priority' } - let(:column_header_selector) { 'table.workpackages-table th.checkbox + th + th + th + th' } + let(:column_header_selector) { 'table.workpackages-table th:nth-of-type(5)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column' @@ -180,7 +180,7 @@ describe 'Work package index accessibility', :type => :feature do describe 'subject column' do let(:link_caption) { 'Subject' } - let(:column_header_selector) { 'table.workpackages-table th.checkbox + th + th + th + th + th' } + let(:column_header_selector) { 'table.workpackages-table th:nth-of-type(6)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column' @@ -188,7 +188,7 @@ describe 'Work package index accessibility', :type => :feature do describe 'assigned to column' do let(:link_caption) { 'Assignee' } - let(:column_header_selector) { 'table.workpackages-table th.checkbox + th + th + th + th + th + th' } + let(:column_header_selector) { 'table.workpackages-table th:nth-of-type(7)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column'