Skip to content

Commit

Permalink
Merge branch 'develop' into fb_noEncodePart
Browse files Browse the repository at this point in the history
  • Loading branch information
cnathe committed Feb 13, 2025
2 parents 6bd00a5 + 5c0664c commit 4bd43b1
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.labkey.test.components.ui.files;

import org.labkey.test.BootstrapLocators;
import org.labkey.test.Locator;
import org.labkey.test.components.bootstrap.ModalDialog;
import org.labkey.test.components.html.Input;
Expand Down Expand Up @@ -183,6 +184,19 @@ public void clickSave()
dismiss("Save");
}

public void clickCancel()
{
dismiss("Cancel");
}

public String clickSaveExpectError()
{
Locators.dismissButton("Save").findElement(getComponentElement()).click();
return BootstrapLocators.errorBanner
.findWhenNeeded(this).withTimeout(5_000)
.getText();
}

@Override
protected ManageImportTemplatesDialog.ElementCache newElementCache()
{
Expand Down

0 comments on commit 4bd43b1

Please sign in to comment.