Skip to content

Commit

Permalink
Fix path to h3 template.
Browse files Browse the repository at this point in the history
  • Loading branch information
csrster committed Nov 12, 2015
1 parent 1d6aa9e commit cadacfa
Show file tree
Hide file tree
Showing 2 changed files with 596 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ public void updateTemplateTest() throws Exception {
PageHelper.gotoPage(PageHelper.MenuPages.EditHarvestTemplates);
defaultOrderRow = driver.findElement(By.id("default_orderxmlflip")).findElement(
By.xpath("parent::*")).findElement(By.xpath("parent::*"));
String fileToUpload = "ws/harvester/harvester-core/src/test/resources/heritrix3/h3-templates/default_orderxml_h3_withdedup.cxml";
String fileToUpload = "src/test/resources/default_orderxml.cxml";
File file = new File(fileToUpload);
assertTrue(file.exists(), "No such file: " + file.getAbsolutePath());
defaultOrderRow.findElement(By.name("upload_file")).sendKeys("harvester/harvester-core/src/test/resources/heritrix3/h3-templates/default_orderxml_h3_withdedup.cxml");
defaultOrderRow.findElement(By.name("upload_file")).sendKeys(fileToUpload);
addStep("Click the upload button.",
"The text 'The harvest template 'default_orderxml' has been updated' should be displayed");
defaultOrderRow.findElement(By.name("upload")).click();
Expand Down
Loading

0 comments on commit cadacfa

Please sign in to comment.