Commit 8f56e49c authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! erp5_xhtml_style: add support for portal_status_level

using a css selector also matches:

    <div class="transition_message transition_message_success">Deleted.</div>

unlike the xpath selector which matches only element where class
attribute is exactly "transition_message"
parent cb47bb83
Pipeline #21355 failed with stage
in 0 seconds
...@@ -130,7 +130,7 @@ Selenium.prototype.assertFloatValue = function(locator, text) { ...@@ -130,7 +130,7 @@ Selenium.prototype.assertFloatValue = function(locator, text) {
* Checks the portal status message. * Checks the portal status message.
*/ */
Selenium.prototype.assertPortalStatusMessage = function(text) { Selenium.prototype.assertPortalStatusMessage = function(text) {
var psm_locator = "//div[@class='transition_message']"; var psm_locator = "css=div.transition_message";
var actualValue = getText(this.page().findElement(psm_locator)); var actualValue = getText(this.page().findElement(psm_locator));
Assert.matches(text, actualValue); Assert.matches(text, actualValue);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment