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:
Diffstat (limited to 'spec/features/projects/work_items/linked_work_items_spec.rb')
-rw-r--r--spec/features/projects/work_items/linked_work_items_spec.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/features/projects/work_items/linked_work_items_spec.rb b/spec/features/projects/work_items/linked_work_items_spec.rb
index 963be23e5a8..f9cdd7b78ab 100644
--- a/spec/features/projects/work_items/linked_work_items_spec.rb
+++ b/spec/features/projects/work_items/linked_work_items_spec.rb
@@ -9,6 +9,12 @@ RSpec.describe 'Work item linked items', :js, feature_category: :team_planning d
let_it_be(:work_item) { create(:work_item, project: project) }
let(:work_items_path) { project_work_item_path(project, work_item.iid) }
let_it_be(:task) { create(:work_item, :task, project: project, title: 'Task 1') }
+ let_it_be(:milestone) { create(:milestone, project: project, title: '1.0') }
+ let_it_be(:label) { create(:label, project: project) }
+ let_it_be(:objective) do
+ create(:work_item, :objective, project: project, milestone: milestone,
+ title: 'Objective 1', labels: [label])
+ end
context 'for signed in user' do
let(:token_input_selector) { '[data-testid="work-item-token-select-input"] .gl-token-selector-input' }
@@ -111,6 +117,33 @@ RSpec.describe 'Work item linked items', :js, feature_category: :team_planning d
expect(page).not_to have_content('Task 1')
end
end
+
+ it 'passes axe automated accessibility testing for linked items empty state' do
+ expect(page).to be_axe_clean.within('.work-item-relationships').skipping :'link-in-text-block'
+ end
+
+ it 'passes axe automated accessibility testing for linked items' do
+ page.within('.work-item-relationships') do
+ click_button 'Add'
+
+ find_by_testid('work-item-token-select-input').set(objective.title)
+ wait_for_all_requests
+
+ form_selector = '.work-item-relationships'
+ expect(page).to be_axe_clean.within(form_selector).skipping :'aria-input-field-name',
+ :'aria-required-children'
+
+ within_testid('link-work-item-form') do
+ click_button objective.title
+
+ click_button 'Add'
+ end
+
+ wait_for_all_requests
+
+ expect(page).to be_axe_clean.within(form_selector)
+ end
+ end
end
def verify_linked_item_added(input)