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

no-jira: wait a little after auto publish

parent c138742f
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ public class TitledWrapperController extends BasicController
theVelocityContainer.put(COMPONENT_NAME, controller.getInitialComponent());
}
this.wrapperCss = wrapperCss;
this.wrapperCss = (wrapperCss == null ? "" : wrapperCss);
this.titleInfo = titleInfo;
// set title info variables
......@@ -114,7 +114,7 @@ public class TitledWrapperController extends BasicController
theVelocityContainer.contextPut(TITLE_SIZE, titleInfo.getTitleSize());
theVelocityContainer.contextPut(USE_SEPARATOR, Boolean.valueOf(titleInfo.isSeparatorEnabled()));
theVelocityContainer.contextPut(ICON_CSS, titleInfo.getIconCssClass());
theVelocityContainer.contextPut(WRAPPER_CSS, wrapperCss);
theVelocityContainer.contextPut(WRAPPER_CSS, this.wrapperCss);
//set the description if any
if (StringHelper.containsNonWhitespace(titleInfo.getDescription())) {
......
......@@ -81,13 +81,12 @@ public class CoursePageFragment {
}
public CoursePageFragment assertOnTitle(String displayName) {
List<WebElement> titleList = browser.findElements(By.tagName("h2"));
Assert.assertNotNull(titleList);
Assert.assertEquals(1, titleList.size());
By titleBy = By.xpath("//h2[text()[contains(.,'" + displayName + "')]]");
OOGraphene.waitElement(titleBy, 5, browser);
WebElement title = titleList.get(0);
Assert.assertTrue(title.isDisplayed());
Assert.assertTrue(title.getText().contains(displayName));
WebElement titleEl = browser.findElement(titleBy);
Assert.assertNotNull(titleEl);
Assert.assertTrue(titleEl.isDisplayed());
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