Skip to content
Snippets Groups Projects
Commit d15fb7ee authored by srosse's avatar srosse
Browse files

no-jira: fix selenium tests

parent d5ddc455
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,8 @@ public class CoursePageFragment {
browser.findElement(editCourseBy).click();
OOGraphene.waitBusy(browser);
OOGraphene.closeBlueMessageWindow(browser);
By dropdownModifyNodeBy = By.cssSelector("a.o_sel_course_editor_change_node");
OOGraphene.waitElement(dropdownModifyNodeBy, 5, browser);
return new CourseEditorPageFragment(browser);
}
......
......@@ -292,7 +292,7 @@ public class GroupPage {
}
public GroupPage assertOnInfosPage(String name) {
By groupNameBy = By.xpath("//div[@id='o_main_center_content_inner']//p[contains(text(),'" + name+ "')]");
By groupNameBy = By.xpath("//div[@id='o_main_center_content_inner']//div[contains(@class,'o_name')]//div[contains(text(),'" + name + "')]");
List<WebElement> groupNameEls = browser.findElements(groupNameBy);
Assert.assertFalse(groupNameEls.isEmpty());
return this;
......
......@@ -61,6 +61,7 @@ public class GroupsPage {
WebElement createButton = browser.findElement(createBy);
createButton.click();
OOGraphene.waitBusy(browser);
OOGraphene.waitModalDialog(browser);
By popupBy = By.cssSelector("div.modal-content fieldset.o_sel_group_edit_group_form");
OOGraphene.waitElement(popupBy, 5, browser);
......@@ -75,7 +76,7 @@ public class GroupsPage {
WebElement submitButton = browser.findElement(submitBy);
submitButton.click();
OOGraphene.waitBusy(browser);
By groupNameBy = By.xpath("//div[@id='o_main_center_content_inner']//p[contains(text(),'" + name+ "')]");
By groupNameBy = By.xpath("//div[@id='o_main_center_content_inner']//div[contains(@class,'o_name')]//div[contains(text(),'" + name+ "')]");
OOGraphene.waitElement(groupNameBy, 2, browser);
return new GroupPage(browser);
......@@ -118,11 +119,8 @@ public class GroupsPage {
*/
public GroupPage selectGroup(String name) {
selectGroupInTable(name);
//By groupNameBy = By.xpath("//div[contains(@class,'o_tree')]//a/span[contains(text(),'" + name+ "')]");
By groupNameBy = By.xpath("//div[@id='o_main_center_content_inner']//p[contains(text(),'" + name+ "')]");
By groupNameBy = By.xpath("//div[@id='o_main_center_content_inner']//div[contains(@class,'o_name')]//div[contains(text(),'" + name+ "')]");
OOGraphene.waitElement(groupNameBy, browser);
return new GroupPage(browser);
}
......
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