summaryrefslogtreecommitdiff
path: root/spec/features/projects/commit/comments/user_adds_comment_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/commit/comments/user_adds_comment_spec.rb')
-rw-r--r--spec/features/projects/commit/comments/user_adds_comment_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/projects/commit/comments/user_adds_comment_spec.rb b/spec/features/projects/commit/comments/user_adds_comment_spec.rb
index 53866c32c69..6397df086a7 100644
--- a/spec/features/projects/commit/comments/user_adds_comment_spec.rb
+++ b/spec/features/projects/commit/comments/user_adds_comment_spec.rb
@@ -62,7 +62,7 @@ describe "User adds a comment on a commit", :js do
click_diff_line(sample_commit.line_code)
expect(page).to have_css(".js-temp-notes-holder form.new-note")
- .and have_css(".js-close-discussion-note-form", text: "Discard draft")
+ .and have_css(".js-close-discussion-note-form", text: "Cancel")
# The `Cancel` button closes the current form. The page should not have any open forms after that.
find(".js-close-discussion-note-form").click