Skip to content
Permalink
Browse files

NAS-2473 make SystemTest work again after parameter change

  • Loading branch information...
svcarlsen committed Dec 1, 2015
1 parent 0c796be commit 83b88856210de7790fb2f9cf09b2499e771e103e
@@ -27,6 +27,7 @@
import static dk.netarkivet.systemtest.page.DomainWebTestHelper.SHOW_UNUSED_CONFIGURATIONS_LINK;
import static dk.netarkivet.systemtest.page.DomainWebTestHelper.SHOW_UNUSED_SEED_LISTS_LINK;


import java.lang.reflect.Method;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
@@ -42,7 +43,6 @@

import dk.netarkivet.systemtest.AbstractSystemTest;
import dk.netarkivet.systemtest.NASAssert;
import dk.netarkivet.systemtest.SeleniumTest;
import dk.netarkivet.systemtest.page.DomainConfigurationPageHelper;
import dk.netarkivet.systemtest.page.DomainWebTestHelper;
import dk.netarkivet.systemtest.page.PageHelper;
@@ -197,7 +197,7 @@ public void usedSeedListsFilteringTest() {
"The seed list should now be listed");
List<WebElement> configurationRows = readConfigurationTableRows(driver);
configurationRows.get(0).findElement(By.linkText("Edit")).click();
Select seedListSelect = new Select(driver.findElement(By.name("urlListList")));
Select seedListSelect = new Select(driver.findElement(By.name("seedListList")));
seedListSelect.selectByVisibleText(seedList1ID);
driver.findElement(By.cssSelector("input[type=\"submit\"]")).click();
seedListRows = readSeedListTableRows(driver);
@@ -208,7 +208,7 @@ public void usedSeedListsFilteringTest() {
"Only the new seed list should now be listed");
configurationRows = readConfigurationTableRows(driver);
configurationRows.get(0).findElement(By.linkText("Edit")).click();
seedListSelect = new Select(driver.findElement(By.name("urlListList")));
seedListSelect = new Select(driver.findElement(By.name("seedlListList")));
seedListSelect.deselectByVisibleText("defaultseeds");
driver.findElement(By.cssSelector("input[type=\"submit\"]")).click();
seedListRows = readSeedListTableRows(driver);
@@ -39,7 +39,8 @@
public static final String SHOW_UNUSED_SEED_LISTS_LINK = "Show unused seed lists";
public static final String HIDE_UNUSED_SEED_LISTS_LINK = "Hide unused seed lists";
public static final String NEW_SEED_LIST = "New seed list";

public static final String SEED_LIST_NAME = "seedListName";

public static void createDomain(String[] domains) {
TestEventManager.getInstance().addStimuli("Creating domains" + Arrays.asList(domains));
WebDriver driver = PageHelper.getWebDriver();
@@ -63,8 +64,7 @@ public static void createSeedList(String domainName, String seedListName, String
editDomain(domainName);

driver.findElement(By.linkText(NEW_SEED_LIST)).click();
driver.findElement(By.name("urlListName")).sendKeys(seedListName);

driver.findElement(By.name(SEED_LIST_NAME)).sendKeys(seedListName);
driver.findElement(By.name("seedList")).clear();
for (String seed : seeds) {
driver.findElement(By.name("seedList")).sendKeys(seed + "\n");

0 comments on commit 83b8885

Please sign in to comment.
You can’t perform that action at this time.