Skip to content

A platform for community discussion. Free, open, simple.

DEV: follow-up localization spec fix (#38090)

Krisa577da7cba0a
diff --git a/spec/system/page_objects/components/composer.rb b/spec/system/page_objects/components/composer.rb
index 865fb740137..543ccfcbadf 100644
--- a/spec/system/page_objects/components/composer.rb
+++ b/spec/system/page_objects/components/composer.rb
@@ -155,7 +155,7 @@ module PageObjects
def set_locale(locale)
Components::DMenu.new(POST_LANGUAGE_SELECTOR).expand
- find("#{POST_LANGUAGE_SELECTOR} button", text: locale).click
+ within("#d-menu-portals", visible: false) { find("button", text: locale).click }
end
def switch_category(category_name)