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

no-jira: small selenium fix

parent 85e32636
No related branches found
No related tags found
No related merge requests found
...@@ -216,13 +216,13 @@ public class UserTest { ...@@ -216,13 +216,13 @@ public class UserTest {
//login again //login again
loginPage loginPage
.assertOnLoginPage() .assertOnLoginPage()
.loginAs(user.getLogin(), user.getPassword()); .loginAs(user.getLogin(), user.getPassword())
//check that we are really logged in
.assertLoggedIn(user);
//check that we don't see the resume button //and check that we don't see the resume button
List<WebElement> resumeButtons = browser.findElements(LoginPage.resumeButton); List<WebElement> resumeButtons = browser.findElements(LoginPage.resumeButton);
Assert.assertTrue(resumeButtons.isEmpty()); Assert.assertTrue(resumeButtons.isEmpty());
//double check that we are really logged in
loginPage.assertLoggedIn(user);
} }
......
...@@ -88,7 +88,8 @@ public class EntryPage { ...@@ -88,7 +88,8 @@ public class EntryPage {
By inputBy = By.cssSelector("fieldset.o_sel_pf_collect_image_form .o_fileinput input[type='file']"); By inputBy = By.cssSelector("fieldset.o_sel_pf_collect_image_form .o_fileinput input[type='file']");
OOGraphene.uploadFile(inputBy, image, browser); OOGraphene.uploadFile(inputBy, image, browser);
OOGraphene.waitingALittleLonger();//wait event By previewBy = By.cssSelector("div.o_filepreview>div.o_image>img");
OOGraphene.waitElement(previewBy, 5, browser);
By titleBy = By.cssSelector("fieldset.o_sel_pf_collect_image_form .o_sel_pf_collect_title input[type='text']"); By titleBy = By.cssSelector("fieldset.o_sel_pf_collect_image_form .o_sel_pf_collect_title input[type='text']");
browser.findElement(titleBy).sendKeys(title); browser.findElement(titleBy).sendKeys(title);
......
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