From 0e6072aefa561ce1790a93cd93c159ba1b476507 Mon Sep 17 00:00:00 2001 From: ulferts Date: Mon, 5 Oct 2020 11:42:43 +0200 Subject: [PATCH] fix accessibility spec expectations --- .../work_packages/work_package_query_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 dd93fc5d34..38d4a85b5f 100644 --- a/spec/features/accessibility/work_packages/work_package_query_spec.rb +++ b/spec/features/accessibility/work_packages/work_package_query_spec.rb @@ -115,7 +115,7 @@ describe 'Work package index accessibility', type: :feature, selenium: true do describe 'id column' do let(:link_caption) { 'ID' } - let(:column_header_selector) { '.work-package-table--container th:nth-of-type(3)' } + let(:column_header_selector) { '.work-package-table--container th:nth-of-type(2)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column' @@ -123,7 +123,7 @@ describe 'Work package index accessibility', type: :feature, selenium: true do describe 'subject column' do let(:link_caption) { 'Subject' } - let(:column_header_selector) { '.work-package-table--container th:nth-of-type(4)' } + let(:column_header_selector) { '.work-package-table--container th:nth-of-type(3)' } let(:column_header_link_selector) { column_header_selector + ' #subject' } it_behaves_like 'sortable column' @@ -131,7 +131,7 @@ describe 'Work package index accessibility', type: :feature, selenium: true do describe 'type column' do let(:link_caption) { 'Type' } - let(:column_header_selector) { '.work-package-table--container th:nth-of-type(2)' } + let(:column_header_selector) { '.work-package-table--container th:nth-of-type(4)' } let(:column_header_link_selector) { column_header_selector + ' a' } it_behaves_like 'sortable column' @@ -165,10 +165,10 @@ describe 'Work package index accessibility', type: :feature, selenium: true do context 'focus' do let(:first_link_selector) do - ".wp-row-#{work_package.id} .inline-edit--display-field.type" + ".wp-row-#{work_package.id} .inline-edit--display-field.id a" end let(:second_link_selector) do - ".wp-row-#{another_work_package.id} .inline-edit--display-field.type" + ".wp-row-#{another_work_package.id} .inline-edit--display-field.id a" end it 'navigates with J and K' do