Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-221

'Untitled' node in newsletter workspace leads to failing tests

    XMLWordPrintable

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?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              cmeier Christoph Meier
              cmeier Christoph Meier
              Foundation
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 4.5h
                    4.5h