Skip to content

Commit

Permalink
#40 Add Restarting the driver to MetadataSelectedItems
Browse files Browse the repository at this point in the history
-> Add Restarting the firefox drive to MetadataSelectedItems to have a
additional restart when running all tests
-> Running MetadataSelectedItems alone would not lead to a firefox crash
  • Loading branch information
helkv committed May 2, 2019
1 parent 3618147 commit 9b3fdb2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/scripts/basicEdmond/MetadataSelectedItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit 9b3fdb2

Please sign in to comment.