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

no-jira: hardened selenium test for Firefox

parent e53b94e0
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -145,7 +146,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -197,7 +199,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -247,7 +250,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -298,7 +302,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -347,7 +352,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -411,7 +417,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -460,7 +467,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -507,7 +515,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -558,7 +567,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -608,7 +618,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -655,7 +666,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -703,7 +715,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......@@ -751,7 +764,8 @@ public class ImsQTI21InteractionsTest extends Deployments {
.clickToolbarRootCrumb();
QTI21Page qtiPage = QTI21Page
.getQTI21Page(browser);
.getQTI21Page(browser)
.assertOnAssessmentItem();
qtiPage
.settings()
.options()
......
......@@ -65,6 +65,9 @@ public class ContactPage {
OOGraphene.scrollTo(buttonsBy, browser);
By sendBy = By.cssSelector("fieldset.o_sel_contact_form button.btn-primary");
browser.findElement(sendBy).click();
By disabledBy = By.cssSelector("fieldset.o_sel_contact_form div.o_sel_contact_body div.o_disabled");
OOGraphene.waitElement(disabledBy, browser);
OOGraphene.moveTop(browser);
OOGraphene.waitAndCloseBlueMessageWindow(browser);
return this;
......
......@@ -54,7 +54,7 @@ public class MembersWizardPage {
public MembersWizardPage nextOverview() {
OOGraphene.nextStep(browser);
OOGraphene.closeBlueMessageWindow(browser);
OOGraphene.waitElement(By.cssSelector("div.o_sel_edit_permissions"), 5, browser);
OOGraphene.waitElement(By.cssSelector("div.o_sel_edit_permissions"), browser);
return this;
}
......@@ -142,8 +142,9 @@ public class MembersWizardPage {
public MembersWizardPage selectGroupAsParticipant(String groupName) {
By rolesBy = By.xpath("//div[contains(@class,'o_table_wrapper')]//table//tr[td[text()='" + groupName + "']]//label[contains(@class,'o_sel_role_participant')]/input");
OOGraphene.waitElement(rolesBy, 5, browser);
OOGraphene.waitElement(rolesBy, browser);
browser.findElement(rolesBy).click();
OOGraphene.waitBusy(browser);
return this;
}
}
......@@ -101,10 +101,9 @@ public class AuthoringEnvPage {
* @return
*/
public AuthoringEnvPage openCreateDropDown() {
WebElement createMenuCaret = browser.findElement(createMenuCaretBy);
Assert.assertTrue(createMenuCaret.isDisplayed());
createMenuCaret.click();
OOGraphene.waitElement(createMenuBy, 5, browser);
OOGraphene.waitElement(createMenuCaretBy, browser);
browser.findElement(createMenuCaretBy).click();
OOGraphene.waitElement(createMenuBy, browser);
return this;
}
......
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