Skip to content

Commit da26aca

Browse files
committed
Troubleshoot MothershipTest failure
1 parent be13ff5 commit da26aca

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mothership/test/src/org/labkey/test/tests/mothership/MothershipTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
import java.util.Arrays;
4444
import java.util.Date;
4545
import java.util.List;
46+
import java.util.function.Supplier;
4647
import java.util.regex.Matcher;
4748
import java.util.regex.Pattern;
4849

@@ -137,9 +138,13 @@ public void testIgnoreExceptionFromDataRegion()
137138

138139
ShowExceptionsPage showExceptionsPage = ShowExceptionsPage.beginAt(this);
139140
ExceptionSummaryDataRegion exceptionSummary = showExceptionsPage.exceptionSummary();
141+
Supplier<List<String>> getAssignedToAndIssue = () -> exceptionSummary.getRowDataAsText(exceptionSummary.getRowIndex(String.valueOf(stackTraceId)), "AssignedTo", "Issue");
142+
assertEquals("Exception %d should be unassigned", List.of(" ", " "), getAssignedToAndIssue.get());
143+
140144
exceptionSummary.uncheckAllOnPage();
141145
exceptionSummary.checkCheckboxByPrimaryKey(stackTraceId);
142146
exceptionSummary.ignoreSelected();
147+
assertEquals("Exception %d should be ignored (issue -1)", List.of(" ", "-1"), getAssignedToAndIssue.get());
143148

144149
StackTraceDetailsPage detailsPage = exceptionSummary.clickStackTrace(stackTraceId);
145150
assertEquals("Ignoring exception should set GitHub Issue", "-1", detailsPage.githubIssue().get());

0 commit comments

Comments
 (0)