diff options
author | Andreas Kämmerle <andreas.kaemmerle@gmail.com> | 2018-06-25 14:43:11 +0300 |
---|---|---|
committer | Andreas Kämmerle <andreas.kaemmerle@gmail.com> | 2018-06-25 14:43:11 +0300 |
commit | 4e19db62af18dde1268f852ef9c79aa0ac752e58 (patch) | |
tree | 05fbde46153f8787e217df2d11b811cd3975c8ec /spec/features/projects | |
parent | 901159bbae51d818cd6f643da713eee8319923da (diff) |
Change button text to more specific Discard draft
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/commit/comments/user_adds_comment_spec.rb | 2 |
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 6397df086a7..53866c32c69 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: "Cancel") + .and have_css(".js-close-discussion-note-form", text: "Discard draft") # The `Cancel` button closes the current form. The page should not have any open forms after that. find(".js-close-discussion-note-form").click |