diff --git a/test/system/comment_test.rb b/test/system/comment_test.rb index e94b5f1da7..56623e46dc 100644 --- a/test/system/comment_test.rb +++ b/test/system/comment_test.rb @@ -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 that take image uploads are hidden, so reveal them: Capybara.ignore_hidden_elements = false