Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,6 @@ public Locator.XPathLocator getBubbleContent()
public ConfigureMetricsUIPage clickConfigureQCMetrics()
{
clickMenuItem("Configure QC Metrics");
getWrapper().waitForElement(Locator.tagWithText("button", ConfigureMetricsUIPage.ADD_NEW_CUSTOM_METRIC));
return new ConfigureMetricsUIPage(getDriver());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ protected Elements newElementCache()
public ConfigureMetricsUIPage clickConfigureQCMetrics()
{
clickMenuItem("Configure QC Metrics");
getWrapper().waitForElement(Locator.tagWithText("button", ConfigureMetricsUIPage.ADD_NEW_CUSTOM_METRIC));
return new ConfigureMetricsUIPage(getDriver());

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import org.jetbrains.annotations.Nullable;
import org.junit.Assert;
import org.labkey.test.BaseWebDriverTest;
import org.labkey.test.Locator;
import org.labkey.test.components.ext4.Window;
import org.labkey.test.components.targetedms.QCPlotsWebPart;
Expand All @@ -23,6 +22,12 @@ public ConfigureMetricsUIPage(WebDriver driver)
super(driver);
}

@Override
protected void waitForPage()
{
waitForElement(Locator.tagWithText("button", ConfigureMetricsUIPage.ADD_NEW_CUSTOM_METRIC), 15_000);
}

public ConfigureMetricsUIPage setLeveyJennings(String metric, @Nullable String lowerBound, @Nullable String upperBound)
{
selectOptionByText(Locator.name(metric), "Levey-Jennings (+/- standard deviations)");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.labkey.test.pages.panoramapremium.ConfigureMetricsUIPage;
import org.labkey.test.pages.targetedms.PanoramaDashboard;
import org.labkey.test.tests.panoramapremium.TargetedMSPremiumTest;
import org.labkey.test.util.DataRegion;
import org.labkey.test.util.DataRegionTable;
import org.openqa.selenium.WebElement;

Expand Down Expand Up @@ -114,6 +113,8 @@ public void testBadMetricQuery()
@Test
public void testFixedDeviationFromMeanOption()
{
goToProjectHome();

QCPlotsWebPart.MetricType metricType = QCPlotsWebPart.MetricType.TRANSITION_AREA;
ConfigureMetricsUIPage configureQCMetrics = goToDashboard().getQcSummaryWebPart().clickConfigureQCMetrics();

Expand Down Expand Up @@ -153,6 +154,8 @@ public void testFixedDeviationFromMeanOption()
@Test
public void testFixedValueCutOffOption()
{
goToProjectHome();

QCPlotsWebPart.MetricType metric = QCPlotsWebPart.MetricType.TRANSITION_MASS_ERROR;
ConfigureMetricsUIPage configureQCMetrics = goToDashboard().getQcSummaryWebPart().clickConfigureQCMetrics();

Expand Down Expand Up @@ -185,6 +188,8 @@ public void testFixedValueCutOffOption()
@Test
public void testPlotOnlyOption()
{
goToProjectHome();

QCPlotsWebPart.MetricType metric = QCPlotsWebPart.MetricType.ISOTOPE_DOTP;
ConfigureMetricsUIPage configureQCMetrics = goToDashboard().getQcSummaryWebPart().clickConfigureQCMetrics();
configureQCMetrics.setShowMetricNoOutlier(metric);
Expand Down