Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-753

Some success notifications include two spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • MTA 6.2.0
    • MTA 6.2.0
    • UI
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      The notification texts have changed.

      For creation, the template is create": "{{type what was successfully created.}} and for updating its "save": "{{type what was successfully saved."}}

      }} The problem arises when updating objects because the API response doesn't include the "{{{}what" value.

       

      As a result, the message ends up looking like this:

      Success Alert:Migration Wave was successfully saved. (Notice the two spaces between the {{type}} and "was")

       

      It looks good in the UI, but if you inspect the DOM, you'll see these two extra spaces.

      This issue is causing many of our tests to fail because Cypress accesses the value through the DOM. 

      Version-Release number of selected component (if applicable): 6.2.0

       

      How reproducible: Always

       

      Steps to Reproduce:
      1. Go to Migration -> Migration Waves and create one
      2. Update the migration wave, change its name and click "Save"
      3. While the success notification is visible, execute the following command in the console:

      document.querySelector("div[aria-label='Success Alert']").textContent

       

       

      Additional info:

            ibolton@redhat.com Ian Bolton
            rh-ee-abrugaro Alejandro Brugarolas
            Alejandro Brugarolas Alejandro Brugarolas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: