mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 09:31:40 +08:00
When adding a note through the timeline tab, the note wasn't being persisted to the reviewable's reviewable_notes array. This caused the note to disappear when switching between tabs.
16 lines
353 B
Ruby
16 lines
353 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Components
|
|
class ReviewNoteForm < PageObjects::Components::Base
|
|
def add_note(note)
|
|
form.fill_in("note", with: note)
|
|
form.submit
|
|
end
|
|
|
|
def form
|
|
@form ||= PageObjects::Components::FormKit.new(".reviewable-note-form__form")
|
|
end
|
|
end
|
|
end
|
|
end
|