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-138208

Test automation related to LPS-128385: 'As a site admin, I want to configure PageSpeed from Site Settings'

    Details

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

      Description

      Test case 1

      Given the Google PageSpeed settings tab in the Virtual Instance Scope section
      When the Enable Google PageSpeed Insights check is unchecked
      Then the Page Audit icon won't be visible from the view mode of the pages in the site.
      3 - Medium

      Test Name: PageAuditIconInvisible
      Steps to reproduce: * Set Google PageSpeed Insights

        1. Go to Site Menu > Configuration > Site Settings > Pages > Site Scope > Google PageSpeed Insights
        2. Unheck Google PageSpeed Insights input
        3. Click 'Save'/'Update'
      • Check if "Page Audit" icon is not visible at Site

      Test case 2

      Given the preferred strategy dropdown in the Site Scope section
      When the value is void ("Choose an option")
      Then the call is made for Google Page Speed default value - desktop
      3 - Medium

      Test Name: DesktopDefaultValue
      Steps to reproduce: * Set Google PageSpeed Insights

        1. Go to Site Menu > Configuration > Site Settings > Pages > Site Scope > Google PageSpeed Insights
        2. Check Google PageSpeed Insights input
        3. Set API Key
        4. Set 'Choose an option'
        5. Click 'Save'/'Update'
      • Run Page Audit
        1. Go to site
        2. Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
        3. Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert if right strategy was retrieved
        1. Assert if 'Small Tap Targets' and 'Illegible font sizes' are NOT retrieved

      Test case 3

      Given the preferred strategy dropdown in the Site Scope section
      When the value is Mobile
      Then additional checks: Small Tap Targets, Incorrect Aspect Ratios and Illegible font sizes are retrieved
      4 - High

      Test Name: PreferredStrategyForMobileValue
      Steps to reproduce: * Set Google PageSpeed Insights

        1. Go to Site Menu > Configuration > Site Settings > Pages > Site Scope > Google PageSpeed Insights
        2. Check Google PageSpeed Insights input
        3. Set API Key
        4. Set 'Mobile'
        5. Click 'Save'/'Update'
      • Run Page Audit
        1. Go to site
        2. Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
        3. Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert if right strategy was retrieved
        1. Assert if 'Small Tap Targets' and 'Illegible font sizes' are retrieved

      Test case 4

      Given the preferred strategy dropdown in the Site Scope section
      When the value is Desktop
      Then additional checks: Small Tap Targets, Incorrect Aspect Ratios and Illegible font sizes are NOT retrieved
      4 - High

      Steps to reproduce: PreferredStrategyForDesktopValue

      • Set Google PageSpeed Insights
        1. Go to Site Menu > Configuration > Site Settings > Pages > Site Scope > Google PageSpeed Insights
        2. Check Google PageSpeed Insights input
        3. Set API Key
        4. Set 'Desktop'
        5. Click 'Save'/'Update'
      • Run Page Audit
        1. Go to site
        2. Set a canonical URL using PageAudit.setSEOcanonicalURL macro ( check here )
        3. Run Page Audit using PageAudit.openPanelAfterConfiguration
      • Assert if right strategy was retrieved
        1. Assert if 'Small Tap Targets' and 'Illegible font sizes' are NOT retrieved

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-qa Support QA
              Reporter:
              luiz.queiroz Luiz Queiroz
              Recent user:
              Rita Silveira
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package