Commit 3bbbf60a authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-broken-qa-test-due-to-enabled-feature-flag' into 'master'

Fix broken QA test

Closes #197486

See merge request gitlab-org/gitlab!23328
parents 36e9d10a 2fb1fabb
...@@ -79,7 +79,6 @@ export const issuableIconMap = { ...@@ -79,7 +79,6 @@ export const issuableIconMap = {
* them inside i18n functions. * them inside i18n functions.
*/ */
export const issuableQaClassMap = { export const issuableQaClassMap = {
[issuableTypesMap.ISSUE]: 'qa-add-issues-button',
[issuableTypesMap.EPIC]: 'qa-add-epics-button', [issuableTypesMap.EPIC]: 'qa-add-epics-button',
}; };
......
...@@ -34,6 +34,7 @@ export default { ...@@ -34,6 +34,7 @@ export default {
<split-button <split-button
:action-items="$options.actionItems" :action-items="$options.actionItems"
class="js-issue-actions-split-button" class="js-issue-actions-split-button"
data-qa-selector="issue_actions_split_button"
menu-class="dropdown-menu-large" menu-class="dropdown-menu-large"
right right
size="sm" size="sm"
......
...@@ -20,6 +20,10 @@ module QA ...@@ -20,6 +20,10 @@ module QA
element :add_issue_input element :add_issue_input
end end
view 'ee/app/assets/javascripts/related_items_tree/components/issue_actions_split_button.vue' do
element :issue_actions_split_button
end
view 'ee/app/assets/javascripts/related_items_tree/components/tree_item.vue' do view 'ee/app/assets/javascripts/related_items_tree/components/tree_item.vue' do
element :related_issue_item element :related_issue_item
end end
...@@ -28,12 +32,8 @@ module QA ...@@ -28,12 +32,8 @@ module QA
element :remove_issue_button element :remove_issue_button
end end
view 'ee/app/assets/javascripts/related_issues/constants.js' do
element :add_issues_button
end
def add_issue_to_epic(issue_url) def add_issue_to_epic(issue_url)
click_element :add_issues_button find_element(:issue_actions_split_button).find_all('button').first.click
fill_element :add_issue_input, issue_url fill_element :add_issue_input, issue_url
click_body click_body
click_element :add_issue_button click_element :add_issue_button
......
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