Skip to content

Commit

Permalink
MIR-1419-Can't edit author in publication and related item in same xe…
Browse files Browse the repository at this point in the history
…ditor

- fix test relying on id personLabel
  • Loading branch information
sebhofmann committed Jan 15, 2025
1 parent 016107e commit 0e76d7b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public void setAuthors(List<String> names, int fieldOffset) {

IntStream.range(0, names.size()).forEach(i -> {
String name = names.get(i);
String inputPath = ".//input[contains(@id,'personLabel-" + (i + 1 + fieldOffset) + "')]";
String inputPath = ".//input[contains(@id,'personLabel-1-" + (i + 1 + fieldOffset) + "')]";
WebElement inputElement = driver.waitAndFindElement(By.xpath(inputPath));
inputElement.sendKeys(name);
driver.waitAndFindElement(By.xpath(inputPath + "/.././/button[contains(text(), 'Suchen')]")).click();
Expand Down

0 comments on commit 0e76d7b

Please sign in to comment.