-
Improvement
-
Resolution: Not an issue
-
Neutral
-
None
-
None
Here is another example / a few lines of codes, where tests always fail:
contentApp.clickRow(titleInitialVersion) .hitAction("Publish") .hitAction("Edit page") .hitAction("Edit page properties");
The "problem" is publish which will may take some time plus displays a "banner" ("Successfully bla bla ...").
These banners, as well as other similar types of notification, interfere with the DOM in a way, that our locators typically fail, as long as such a message is present.
In some cases it is fine - actually required - to confirm the message, which disappear then.
But the banner from publishing has no button to confirm (however, there is a [x] to close it), and the message automatically disappear after a few seconds.
One possible workaround is to discard such notifs, e.g.
expect.notification()
.withMessage("Role successfully deleted.")
.discard();
However, let's see if we can avoid test writers to write such code, unless they actually want to check that such a notif is displayed.