Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-137279 Test automation related to Page Audit
  3. LPS-138206

Test automation related to LPS-132234: 'As a content manager, I want to know the detail of the failing elements affecting my page'

    Details

    • Type: Technical Testing
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SEO Tools > Page Audit
    • Labels:
      None

      Description

      Test case 1

      Given the page audit panel detail view
      When there are more than 10 failing elements for a single issue
      Then the users can see a Show more button every 10 failing elements, and when they click on it another 10 elements are displayed
      3 - Medium

      TestName: DisplayMoreErrors
      Steps for test automation:

      • Start Panel
      • Set Google PageSpeed API using PageAudit.setAPIViaSiteSettings macro
      • Set a canonical URL using PageAudit.setSEOcanonicalURL macro and https://liferay-tango.github.io/liferay-portal/page-audit-test-10-more-issues.html as URL ( check here )
      • Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert the number of failing elements displayed
        1. In page audit panel, click 'Illegible Font Sizes'
        2. Assert if 10 elements are displayed
        3. Click 'View More'
        4. Assert if last elements are displayed

      Test case 2

      Given the detail view of the page audit panel
      Then the checks related to Low contrast ratio, Missing image-alt and Missing input-image-alt will appear under the Accessibility section
      3 - Medium

      TestName: AccessibilityFailures
      Steps for test automation:

      • Start Panel
      • Set Google PageSpeed API using PageAudit.setAPIViaSiteSettings macro
      • Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
      • Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert if Low contrast ratio, Missing image-alt and Missing input-image-alt appears under the Accessibility section

      Test case 3

      Given the detail view of the page audit panel
      Then the checks related to Incorrect image-aspect-ratio, Missing meta-description, Invalid Hreflang, Invalid canonical URL, Illegible font sizes, Small tap targets, Missing <title> element and Crawlable-anchors will appear under the SEO section
      3 - Medium

      TestName:
      Steps for test automation: SEOFailures

      • Start Panel
      • Set Google PageSpeed API using PageAudit.setAPIViaSiteSettings macro
      • Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
      • Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert if Incorrect image-aspect-ratio, Missing meta-description, Invalid Hreflang, Invalid canonical URL, Illegible font sizes, Small tap targets, Missing <title> element and Crawlable-anchors appear under the SEO section

      Test case 4

      Given the page audit panel detail view and a user with NO permissions for editing the page
      When there is no meta description for the page
      Then the users will see a text: Add a meta-description from the Configuration section of this page.
      4 - High

      TestName: CheckMissingMetaDescriptionWithoutPermission
      Steps for test automation:

      • Start Panel
      • Create an User with JSONUser macros
      • Create and assign a Role with JSONRole and Permissions
      • Set Google PageSpeed API using PageAudit.setAPIViaSiteSettings macro
      • Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
      • Logout and Login with new user
      • Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert the number of failing elements displayed
        1. In page audit panel, click 'Missing Meta Description'
        2. Assert text 'Add a description from the configuration section of this page.' is not clickable.

      Test case 5

      Given the page audit panel detail view and a user with NO permissions for editing the page
      When the page is blocked from indexing
      Then the users will see a text: Change the robots.txt setting from the Configuration section of this page.
      4 - High

      TestName:  CheckPageBlockedFromIndexingWithoutPermission
      Steps for test automation:

      • Start Panel
      • Create an User with JSONUser macros
      • Create and assign a Role with JSONRole and Permissions
      • Set Google PageSpeed API using PageAudit.setAPIViaSiteSettings macro
      • Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
      • Logout and Login with new user
      • Run Page Audit using PageAudit.openPanelAfterConfiguration
        • In the "Page is blocked for indexing" check if
          Change robots.txt setting is shown

      Test case 6

      Given the page audit panel detail view and a user with NO permissions to edit Instance
      Settings
      When there is no canonical URL, or it doesn't coincide with the page's URL
      Then the users will see the invalid canonical URL, and a text: If the problem is that the canonical URL doesn't match the URL of the page, try changing the configuration for using localized canonical URLs from Instance settings > Pages > SEO.
      4 - High

      TestName: CheckInvalidCanonicalURLWithoutPermission
      Steps for test automation:

      • Start Panel
      • Create an User with JSONUser macros
      • Create and assign a Role with JSONRole and Permissions
      • Set Google PageSpeed API using PageAudit.setAPIViaSiteSettings macro
      • Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
      • Logout and Login with new user
      • Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert the number of failing elements displayed
        1. In page audit panel, click 'Invalid Canonical URL'
        2. Assert text 'If the problem is that the canonical URL doesn't match the URL of the page, try changing the configuration for using localized canonical URLs from Instance settings > Pages > SEO..'

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              luiz.queiroz Luiz Queiroz
              Reporter:
              luiz.queiroz Luiz Queiroz
              Recent user:
              Luiz Queiroz
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package