Skip to content

Commit

Permalink
Automation test update for Issue 49206: Update TOTPAuthenticationTest…
Browse files Browse the repository at this point in the history
… to expect disabled configurations (#1743)
  • Loading branch information
labkey-sweta authored Dec 5, 2023
1 parent bd26a7f commit d4e7c2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/org/labkey/test/components/react/MultiMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ public MultiMenuFinder withButtonIcon(String iconClass)
_locator = Locators.menuContainer().withChild(BootstrapMenu.Locators.dropdownToggle().withChild(Locator.byClass(iconClass)));
return this;
}

@Override
protected MultiMenuFinder getThis()
{
Expand Down
8 changes: 7 additions & 1 deletion src/org/labkey/test/pages/core/login/LoginConfigurePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public boolean canAddSecondaryConfiguration()
return elementCache().secondaryMenuFinder.findOptional(getDriver()).isPresent();
}

public boolean isSecondaryConfOptionEnabled(String option)
{
toggleSecondaryConfiguration();
return !elementCache().addSecondaryMenu.isMenuItemDisabled(option);
}

private boolean isPrimarySelected()
{
return elementCache().panelTab1.getAttribute("aria-selected").equals("true");
Expand Down Expand Up @@ -197,7 +203,7 @@ protected class ElementCache extends LabKeyPage.ElementCache
BootstrapMenu addPrimaryMenu = primaryMenuFinder.findWhenNeeded(this);
MultiMenu.MultiMenuFinder secondaryMenuFinder = new MultiMenu.MultiMenuFinder(getDriver())
.withText("Add New Secondary Configuration").timeout(WAIT_FOR_JAVASCRIPT);
BootstrapMenu addSecondaryMenu = secondaryMenuFinder.findWhenNeeded(this);
MultiMenu addSecondaryMenu = secondaryMenuFinder.findWhenNeeded(this);

WebElement globalSettingsPanel()
{
Expand Down

0 comments on commit d4e7c2e

Please sign in to comment.