Skip to content

Commit

Permalink
XWIKI-13967: Confusion between Supported Languages and Default Langua…
Browse files Browse the repository at this point in the history
…ges when multilingual is set to no

* Fixed a test that should have been updated with the fixes for XWIKI-13967
  • Loading branch information
Sereza7 committed Jan 19, 2024
1 parent e3f483a commit a82510d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a82510d

Please sign in to comment.