[MGNLTEST-221] 'Untitled' node in newsletter workspace leads to failing tests Created: 18/Apr/22  Updated: 26/Dec/22  Resolved: 26/Dec/22

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Resolved Votes: 0
Labels: VN-Testing
Remaining Estimate: Not Specified
Time Spent: 4.5h
Original Estimate: Not Specified

Template:
Acceptance criteria:
[ ]* All tests of ChooserDialogTest pass regularly
[ ]* All tests of FormTest pass regularly
[ ]* Re-enable tests which have been disabled in context of MGNLTEST-217
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Team: Foundation

 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?


 Comments   
Comment by Christoph Meier [ 26/Dec/22 ]

This issue was a result of problems with @Cleanup - problem resolved

Generated at Mon Feb 12 07:46:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.