Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-141143

Add assertion to FriendlyURLHistory.js test

Details

    Description

      We have a flake test in FriendlyURLHistory.js and we are not able to get the cause.

      The test fails in this case.

      We need more information to get the cause directly in the output console in the CLI adding some assertion snapshot inside the test.

      Something like jose.balsas proposes:

      expect(listItems.map((item) => item.textContent)).toMatchSnapshot(); 

      Update the assertion to search for only 3 items excluding the header instead of 4.

      We talk about it on the lima slack channel

      Attachments

        Activity

          People

            team-lima Product Team Lima
            jorge.gonzalez Jorge González
            Jorge González Jorge González
            Kiyoshi Lee Kiyoshi Lee
            Jorge González
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Packages

                Version Package