Skip to content

Commit

Permalink
update selectors for edit form #9004
Browse files Browse the repository at this point in the history
  • Loading branch information
noi5e authored Jan 26, 2021
1 parent 90282b2 commit ed09de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/system/comment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def get_path(page_type, path)
# we need the comment ID:
edit_comment_form_id = edit_comment_form[:id]
# regex to strip the ID number out of string. ID format is #c1234edit
comment_id_num = /c(\d+)edit/.match(edit_comment_form_id)[1]
comment_id_num = /comment-form-edit-(\d+)/.match(edit_comment_form_id)[1]
edit_preview_id = '#comment-preview-edit-' + comment_id_num
# the <inputs> that take image uploads are hidden, so reveal them:
Capybara.ignore_hidden_elements = false
Expand Down

0 comments on commit ed09de9

Please sign in to comment.