Skip to content
Snippets Groups Projects
Commit a1cfc2de authored by Sereza7's avatar Sereza7 Committed by Simon Urli
Browse files

XWIKI-13967: Confusion between Supported Languages and Default Languages when...

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
parent e3f483a2
No related branches found
Tags 6.0.0-rc.7
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment