Skip to content

Commit

Permalink
selenium test for concurrent template edit (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
XingY authored Feb 12, 2025
1 parent 986ff6f commit 5c0664c
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 5c0664c

Please sign in to comment.