fix accessibility spec expectations

pull/8768/head
ulferts 4 years ago
parent 877b94e2c0
commit 0e6072aefa
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 10
      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

Loading…
Cancel
Save