Skip to content

Commit c54edc8

Browse files
authored
Don't interfere with failure screenshots with @after (#578)
1 parent b2bd997 commit c54edc8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicBaseTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.labkey.test.Locator;
1515
import org.labkey.test.TestFileUtils;
1616
import org.labkey.test.TestTimeoutException;
17+
import org.labkey.test.WebTestHelper;
1718
import org.labkey.test.components.BodyWebPart;
1819
import org.labkey.test.components.SubfoldersWebPart;
1920
import org.labkey.test.components.panoramapublic.TargetedMsExperimentInsertPage;
@@ -113,10 +114,6 @@ public static void initProject()
113114
@After
114115
public void afterTest() throws IOException, CommandException
115116
{
116-
if (isImpersonating())
117-
{
118-
stopImpersonating();
119-
}
120117
verifySymlinks();
121118
}
122119

@@ -149,7 +146,7 @@ private void createPanoramaPublicJournalProject()
149146

150147
boolean verifySymlinks() throws IOException, CommandException
151148
{
152-
Connection connection = createDefaultConnection();
149+
Connection connection = WebTestHelper.getRemoteApiConnection(false);
153150
SimpleGetCommand command = new SimpleGetCommand("PanoramaPublic", "verifySymlinks");
154151
CommandResponse verifyResponse = command.execute(connection, "/");
155152

panoramapublic/test/src/org/labkey/test/tests/panoramapublic/PanoramaPublicMyDataViewTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private void verifyColumnValues(DataRegionTable table, int catalogEntryCol, int
191191
@NotNull
192192
private DataRegionTable myDataView()
193193
{
194-
var table = new DataRegionTable.DataRegionFinder(getDriver()).refindWhenNeeded();
194+
var table = new DataRegionTable("Targeted MS Experiment List", getDriver());
195195
assertTrue(table.hasHeaderMenu("My Data"));
196196
table.clickHeaderButtonAndWait("My Data");
197197
return new DataRegionTable.DataRegionFinder(getDriver()).refindWhenNeeded();

0 commit comments

Comments
 (0)