Commit 029da7fa authored by Walmyr Lima's avatar Walmyr Lima

Fix export issues end-to-end test

Now that exporting issues list as a cvs has moved to core we have
to move some elements and methods from a ee page object to its ce
counterpart.
parent ae638fcc
...@@ -16,30 +16,9 @@ module QA ...@@ -16,30 +16,9 @@ module QA
view 'ee/app/views/projects/issues/_issue_weight.html.haml' do view 'ee/app/views/projects/issues/_issue_weight.html.haml' do
element :issuable_weight element :issuable_weight
end 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
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 def issuable_weight
find_element(:issuable_weight) find_element(:issuable_weight)
end end
......
...@@ -9,6 +9,15 @@ module QA ...@@ -9,6 +9,15 @@ module QA
element :assignee_link element :assignee_link
end 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 view 'app/views/projects/issues/_issue.html.haml' do
element :issue element :issue
element :issue_link, 'link_to issue.title' # rubocop:disable QA/ElementWithPattern element :issue_link, 'link_to issue.title' # rubocop:disable QA/ElementWithPattern
...@@ -34,6 +43,18 @@ module QA ...@@ -34,6 +43,18 @@ module QA
click_element :closed_issues_link click_element :closed_issues_link
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 has_assignee_link_count?(count) def has_assignee_link_count?(count)
all_elements(:assignee_link, count: count) all_elements(:assignee_link, count: count)
end 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