From a82510d441a9e3bb09a985f7044bf95118121e7e Mon Sep 17 00:00:00 2001 From: Sereza7 Date: Fri, 19 Jan 2024 11:28:51 +0100 Subject: [PATCH] XWIKI-13967: Confusion between Supported Languages and Default Languages when multilingual is set to no * Fixed a test that should have been updated with the fixes for XWIKI-13967 --- .../test/po/LocalizationAdministrationSectionPage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/LocalizationAdministrationSectionPage.java b/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/LocalizationAdministrationSectionPage.java index d66beb3e32ba..9958b05e30bc 100644 --- a/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/LocalizationAdministrationSectionPage.java +++ b/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/LocalizationAdministrationSectionPage.java @@ -22,6 +22,7 @@ import java.util.Arrays; import java.util.List; +import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.xwiki.test.ui.po.BootstrapSelect; @@ -52,7 +53,8 @@ public LocalizationAdministrationSectionPage() waitUntilActionButtonIsLoaded(); // Wait for asynchronous widgets to be loaded getDriver().waitUntilCondition(driver -> multiLingualSelect.isDisplayed() && defaultLanguageSelect.isDisplayed() - && supportedLanguagesSelect.isDisplayed()); + && (multiLingualSelect.findElement(By.xpath(".//option[@value='0']")).isSelected() + || supportedLanguagesSelect.isDisplayed())); } public void setMultiLingual(boolean isMultiLingual)