Skip to content
Snippets Groups Projects
Commit 73bf8ed6 authored by Eduard Moraru's avatar Eduard Moraru
Browse files

[build] Fixed tests.

- Negative yoffsets work only when moving before a field that is not the top field. Using 0 yoffset works both for moving before top fields and also before lower ones.
- xoffset seems to work fine with a value of 0, so I also removed the comment saying it doesn't.
parent a6c096df
No related branches found
No related tags found
No related merge requests found
......@@ -172,8 +172,7 @@ public Boolean apply(WebDriver driver)
*/
public void moveFieldBefore(String fieldToMove, String beforeField)
{
// Drag the field slightly before the target field (vertically). For some reason it doesn't work if we use x=0.
new ClassFieldEditPane(fieldToMove).dragTo(fieldsCanvas.findElement(By.id("field-" + beforeField)), 1, -30);
new ClassFieldEditPane(fieldToMove).dragTo(fieldsCanvas.findElement(By.id("field-" + beforeField)), 0, 0);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment