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

OO-3474: click twice the month link to reload the page

parent 039db926
No related branches found
No related tags found
No related merge requests found
......@@ -571,6 +571,7 @@ public class CourseElementTest extends Deployments {
//the participant must see the new post after some click
participantFeed
.clickFirstMonthOfPager()
.clickFirstMonthOfPager()
.assertOnBlogPost(post2Title);
}
......
......@@ -178,10 +178,9 @@ public class FeedPage {
* @return
*/
public FeedPage clickFirstMonthOfPager() {
By monthBy = By.cssSelector("div.o_year_navigation ul.o_month>li.o_month>a.o_month");
List<WebElement> monthLinks = browser.findElements(monthBy);
Assert.assertFalse(monthLinks.isEmpty());
monthLinks.get(0).click();
By monthBy = By.xpath("//div[contains(@class,'o_year_navigation')]//li[contains(@class,'o_month')][1]/a");
OOGraphene.waitElement(monthBy, browser);
browser.findElement(monthBy).click();
OOGraphene.waitBusy(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