Tuleap 16 est là ! Assistez à l'événement virtuel le 17 octobre à 10h30. Inscrivez-vous ici !

    •  
      request #38638 Artifact-modal LinkField e2e test fails because default link type is reset to "is Child of"
    Infos
    #38638
    Thomas Gorka (tgorka)
    2024-06-25 12:34
    2024-06-25 10:59
    40251
    Details
    Artifact-modal LinkField e2e test fails because default link type is reset to "is Child of"

    Artifact-modal LinkField e2e test fails because the suggested default link type is reset to "is Child of".

    During the migration Hybrids: 8.2.2 -> 9.0.0, we had to refactor a bit the LinkField custom element because of the breaking changes introduced in the major version.

    In planning-v2, there is a business rule saying: Given an artifact, When It has no parent artifact, Then the link type suggested by default should be "is Child of".

    Before the migration, in a planning-v2 context, the behavior was:

    - Given a link selected with the type "is Child of", When the link type changes, Then the link type suggested by default is "is Linked to"

    After the migration, still in a planning-v2 context, the behavior is:

    - Given a link selected with the type "is Child of", When the link type changes, Then the link type suggested by default is set back to "is Child of".

     

    This new behavior seems more legit than the previous one. Let's keep it and update the Cypress test instead.

     

    Cypress
    development
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gorka (tgorka)
    Closed
    2024-06-25
    Attachments
    Empty
    References
    Referencing request #38638

    Follow-ups