Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix accessibility spec expectations

ulferts0e6072aefa56
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 dd93fc5d34f..38d4a85b5f5 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