Skip to content

Commit

Permalink
Utilize getServerErrorCount()
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-nicka committed Feb 25, 2025
1 parent b95c150 commit 34f6521
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/labkey/test/tests/KnitrReportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,11 @@ private void verifyAdhocReportDependencies(String viewName, String dependencies)

createKnitrReport(rmdDependenciesReport, RReportHelper.ReportOption.knitrMarkdown);

int errorCountBefore = getServerErrorCount();
_rReportHelper.clickReportTab();
waitForElement(Locator.id("mtcars_table"));
assertElementNotPresent(Locator.id("mtcars_table_wrapper")); // Created by jQuery
checkExpectedErrors(1); // JavaScript error: "$(...).dataTable is not a function"
checkExpectedErrors(errorCountBefore + 1); // JavaScript error: "$(...).dataTable is not a function"

// now set the dependencies
_rReportHelper.clickSourceTab();
Expand Down

0 comments on commit 34f6521

Please sign in to comment.