discourse/spec/system/page_objects/components/theme_translation_text_area.rb
Gabriel Grubba 8ae462c724
FEATURE: add language picker for theme translations in admin UI (#26150)
Allows editing translations of a theme in locales other than the current localy.
2024-03-18 12:00:28 -04:00

30 lines
557 B
Ruby

# 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