DEV: Added the category chooser into the composer page object (#23076)

This commit is contained in:
Sérgio Saquetim
2023-08-14 10:18:58 -03:00
committed by GitHub
parent 643193d2f0
commit 04c9c81cda

View File

@ -77,6 +77,10 @@ module PageObjects
find(AUTOCOMPLETE_MENU)
end
def category_chooser
Components::SelectKit.new(".category-chooser")
end
def switch_category(category_name)
find(".category-chooser").click
find(".category-row[data-name='#{category_name}']").click