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

Improve ContentApp#selectRowByPath(absolutePath)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Resolved
    • Neutral
    • 1.4.6
    • None
    • None

    Description

      ContentApp#selectRowByPath is somehow erratic.


      In tree-view:

      Imagine this example content:

      /root-item
        /level1-item
          /level2-item
      

      If the tree is fully collapsed,
      Then selecting contentApp#selectRowByPath("root-item/level1-item")
      -> Works fine

      If the item "root-item" is selected
      Then selecting contentApp#selectRowByPath("root-item/level1-item")
      -> fails
      Instead
      to select level1-item - it requires this call:
      contentApp#selectRowByPath("level1-item")

      P.S. Leading slash can be added or omitted, doesn't matter.

      This behaviour is a bit weird, unanticipated.
      A typical test / scenario workflow contains subsequent actions with multiple selections ... and the required code to select becomes a bit weird.

      The method #selectRowByPath should always work "the same", where the parameter always should be the "path" - independent from what had been selected upfront.

      In case we implement ContentApp#unselectAndReset - #selectRowByPath could call #unselectAndReset internally upfront, which may fix the problem.


      In list-view

      seems like that doesn't work at all when using "root-item/level1-item" or "/root-item/level1-item" as parameter ... be be checked again.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              hpola Harshini Pola
              cmeier Christoph Meier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Checklists

                  Task DoD