Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-141

Investigate and fix cause for failing yamlHelper test on Jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 2.2.0

      A test has started failing only on Jenkins (works fine locally) after NPMCLI-138. The changes in that ticket look completely unrelated to the failure though. Most likely it's timing/async issue.

       1) should append components correctly when having spaces or comments and more than one area
      
      
        124 passing (49s)
        1 failing
      
        1) yamlHelper should append components correctly when having spaces or comments and more than one area:
      
            AssertionError: expected 'title: hello\ntemplateScript: /foo/templates/pages/baz.ftl\n  \nareas:\n  fooArea:\n    availableComponents:\n      baz:\n        id: foo:components/baz\n      meh:\n        id: foo:components/meh\n  bazArea:\n    availableComponents:\n      qux:\n      comp:\n        id: foo:components/comp\n        id: foo:components/qux\n' to equal 'title: hello\ntemplateScript: /foo/templates/pages/baz.ftl\n  \nareas:\n  fooArea:\n    availableComponents:\n      baz:\n        id: foo:components/baz\n      meh:\n        id: foo:components/meh\n  bazArea:\n    availableComponents:\n      qux:\n        id: foo:components/qux\n      comp:\n        id: foo:components/comp\n'
            + expected - actual
      
                     id: foo:components/meh
               bazArea:
                 availableComponents:
                   qux:
            +        id: foo:components/qux
                   comp:
                     id: foo:components/comp
            -        id: foo:components/qux
            
            at Context.<anonymous> (test/yamlHelperTest.js:93:37)
      

        Acceptance criteria

              fgrilli Federico Grilli
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD