discourse/spec/system/page_objects/components/ace_editor.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
482 B
Ruby
Raw Normal View History

2023-02-08 14:21:39 -05:00
# frozen_string_literal: true
module PageObjects
module Components
class AceEditor < PageObjects::Components::Base
def type_input(content)
editor_input.send_keys(content)
self
end
def fill_input(content)
editor_input.fill_in(with: content)
self
end
def clear_input
fill_input("")
end
def editor_input
find(".ace-wrapper .ace_text-input", visible: false)
end
end
end
end