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

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

30 lines
557 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module PageObjects
module Components
class ThemeTranslationTextArea < 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(".theme.translations .row:nth-child(1) textarea")
end
def get_input
editor_input.value
end
end
end
end