Commit 6683a932 authored by Sofia Vistas's avatar Sofia Vistas

Fix apply suggestion transient test

Prior to this change, the selector was not
moved to another vue file when considering
functionality

This change applies the qa selector
on the correct vue file and unblocks the
failing test
parent 32feb49c
...@@ -203,6 +203,7 @@ export default { ...@@ -203,6 +203,7 @@ export default {
:draggable="glFeatures.dragCommentSelection" :draggable="glFeatures.dragCommentSelection"
type="button" type="button"
class="add-diff-note unified-diff-components-diff-note-button note-button js-add-diff-note-button qa-diff-comment" class="add-diff-note unified-diff-components-diff-note-button note-button js-add-diff-note-button qa-diff-comment"
data-qa-selector="diff_comment_button"
:class="{ 'gl-cursor-grab': dragging }" :class="{ 'gl-cursor-grab': dragging }"
:disabled="line.left.commentsDisabled" :disabled="line.left.commentsDisabled"
@click="handleCommentButton(line.left)" @click="handleCommentButton(line.left)"
......
...@@ -140,7 +140,6 @@ export default { ...@@ -140,7 +140,6 @@ export default {
ref="addDiffNoteButton" ref="addDiffNoteButton"
type="button" type="button"
class="add-diff-note note-button js-add-diff-note-button" class="add-diff-note note-button js-add-diff-note-button"
data-qa-selector="diff_comment_button"
:disabled="line.commentsDisabled" :disabled="line.commentsDisabled"
@click="handleCommentButton" @click="handleCommentButton"
> >
......
...@@ -67,8 +67,11 @@ module QA ...@@ -67,8 +67,11 @@ module QA
element :edit_in_ide_button element :edit_in_ide_button
end end
view 'app/assets/javascripts/diffs/components/inline_diff_table_row.vue' do view 'app/assets/javascripts/diffs/components/diff_row.vue' do
element :diff_comment_button element :diff_comment_button
end
view 'app/assets/javascripts/diffs/components/inline_diff_table_row.vue' do
element :new_diff_line_link element :new_diff_line_link
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