Details
-
Bug
-
Resolution: Resolved
-
Major
-
None
-
None
Description
An unexpected node 'Untitled' in the jcr-workspace newsletter "appears" sometimes and leads to a couple of failing tests in it.info.magnolia.test.selenium.pageobjects.ChooserDialogTest, it.info.magnolia.test.selenium.pageobjects.FormTest
(See https://jenkins.magnolia-cms.com/job/platform/job/test-framework/job/main/168/ for examples of failures onĀ ChooserDialogTest)
All test methods which start a scenario with the action "Add Newsletter" are affected.
(Why?
These tests expect an empty workspace. But if there is one node, the node is selected and the action "Add Newsletter" is not available.)
The problem has first arised on PR-builds of MGNLTEST-210. While the change4s requetsed by MGNLTEST-210 should not have lead to the issue described in the ticket, the PR of MGNLTEST-210 already contains changes to anticipate the issue described here. And during MGNLTEST-210 some tests also have been disabled.
See MGNLTEST-217, MGNLTEST-218
Note that ChooserDialogTest#setUp cleans potentially existing node 'Untitled'.
In FormTest we use @Cleanup("newsletter:/untitled")
Ideally to be figured out:
- "Who" / which test creates the 'Untitled' node - and when does this happen?
- Is CleanupUtil not always working properly?