Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed May 24, 2023
1 parent 91e9d8c commit e27fef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion testing/src/test/java/mermeid/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void enterLogin(){
String loginText = "";
String loginUser = "mermeid";
String loginPass = "mermeid";
driver.get("http://localhost:8080/modules/list_files.xq");
driver.get("http://localhost:8080/index.html");
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));

try {
Expand Down
8 changes: 1 addition & 7 deletions testing/src/test/java/mermeid/EditorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,8 @@ public void OpenEditPage(){

String title = driver.getTitle();
System.out.println("Title: " + title);
assertTrue(title.equals("MerMEId – Metadata Editor and Repository for MEI Data"));
assertTrue(title.equals("All documents"));

WebElement button = driver.findElement(By.cssSelector("button"));
String buttonText = button.getText();
System.out.print("Function `OpenEditPage` log: ");
System.out.println(buttonText);

assertTrue(buttonText.equals("Try MerMEId"));

Common.enterLogin();
WebElement editButton = driver.findElement(By.xpath("//form[@action='http://localhost:8080/forms/edit-work-case.xml'][input/@value='incipit_demo.xml']/button"));
Expand Down

0 comments on commit e27fef5

Please sign in to comment.