Commit 0ce58ade authored by Dan Davison's avatar Dan Davison

Merge branch 'fix-export-issues-e2e-test' into 'master'

Fix export issues end-to-end test

Closes #215220

See merge request gitlab-org/gitlab!30153
parents dd7a34c8 029da7fa
......@@ -16,30 +16,9 @@ module QA
view 'ee/app/views/projects/issues/_issue_weight.html.haml' do
element :issuable_weight
end
view 'app/views/projects/issues/export_csv/_button.html.haml' do
element :export_as_csv_button
end
view 'app/views/projects/issues/export_csv/_modal.html.haml' do
element :export_issues_button
element :export_issues_modal
end
end
end
def click_export_as_csv_button
click_element(:export_as_csv_button)
end
def click_export_issues_button
click_element(:export_issues_button)
end
def export_issues_modal
find_element(:export_issues_modal)
end
def issuable_weight
find_element(:issuable_weight)
end
......
......@@ -9,6 +9,15 @@ module QA
element :assignee_link
end
view 'app/views/projects/issues/export_csv/_button.html.haml' do
element :export_as_csv_button
end
view 'app/views/projects/issues/export_csv/_modal.html.haml' do
element :export_issues_button
element :export_issues_modal
end
view 'app/views/projects/issues/_issue.html.haml' do
element :issue
element :issue_link, 'link_to issue.title' # rubocop:disable QA/ElementWithPattern
......@@ -34,6 +43,18 @@ module QA
click_element :closed_issues_link
end
def click_export_as_csv_button
click_element(:export_as_csv_button)
end
def click_export_issues_button
click_element(:export_issues_button)
end
def export_issues_modal
find_element(:export_issues_modal)
end
def has_assignee_link_count?(count)
all_elements(:assignee_link, count: count)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment