diff --git a/src/test/scripts/basicEdmond/MetadataSelectedItems.java b/src/test/scripts/basicEdmond/MetadataSelectedItems.java index b12c3e3..5832813 100644 --- a/src/test/scripts/basicEdmond/MetadataSelectedItems.java +++ b/src/test/scripts/basicEdmond/MetadataSelectedItems.java @@ -5,6 +5,7 @@ import org.testng.Assert; import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import spot.pages.CollectionEntryPage; @@ -31,6 +32,13 @@ public class MetadataSelectedItems extends BaseSelenium { String[] items = {"SamplePDFFile.pdf", "SampleCSVFile.csv", "SampleJPGFile.jpg", "SampleJPGFile2.jpg", "SampleTXTFile.txt", "SampleWordFile.docx", "SampleXLSXFile.xlsx"}; + @BeforeClass + public void resetDriver() { + // Restart the browser to prevent Firefox from crashing (see Ticket #40 'Firefox memory leak') + // Add the browser restart here for running this test in context with the other tests (this test alone would not lead to a firefox crash) + restartDriver(); + } + @Test(priority = 1) public void disablePrivateMode() { LoginPage loginPage = new StartPage(driver).openLoginForm();