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

(cherry picked from commit a1cfc2d)
  • Loading branch information
Sereza7 authored and surli committed Jan 19, 2024
1 parent 9c32744 commit 32797be
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 32797be

Please sign in to comment.