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

Test automation related to LPS-128383: 'As an instance admin, I want to configure PageSpeed from Instance Settings'

    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

       

      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 (see LPS-119068) of any of the sites in the instance
      3 - Medium

      Test Name: PageAuditInvisible UncheckedInstanceSettingsVirtualInstanceThenNotVisiblePageAuditIcon
      Steps:

      •  Start Portal
      •    Navigate to Application Menu> Control Panel> Configuration> System Settings > Pages
      •    Go to session Virtual instance scope
      •    Disable Google PageSpeed Insights
      •    Return to Portal Home
        •    Check that the Page Audit Icon is not shown
      Given the Google PageSpeed settings tab in the Virtual Instance Scope section
      When the Enable Google PageSpeed Insights check is unchecked
      Then the "Google PageSpeed Insights" tab won't be visible in the " SITE SCOPE" section
      3 - Medium

      Test Name: GooglePageSpeedInvisible UncheckedInstanceSettingsVirtualInstanceThenNotVisibleAtSiteScope
      Steps:

      •  Start Portal
      •    Navigate to Application Menu> Control Panel> Configuration> System Settings > Pages
      •    Go to session Virtual instance scope
      •    Disable Google PageSpeed Insights
      •    In the SITE SCOPE session
        •    Check if Google PageSpeed ​​Insights is not shown
      Given the Google PageSpeed settings tab in the Virtual Instance Scope section
      When the Enable Google PageSpeed Insights check is unchecked
      Then the "Google PageSpeed Insights" tab won't be visible from the Site settings of any of the sites in the instance
      3 - Medium

      Test Name: PageSpeedInvisibleInSites UncheckedInstanceSettingsVirtualInstanceThenNotVisibleAtSiteSettings
      Steps:

      •  Start Portal
      •    Navigate to Application Menu> Control Panel> Configuration> Instance Settings > Pages
      •    Go to session Virtual instance scope
      •    Disable Google PageSpeed Insights
      •    Go to Configuration of site > Site Settings > Pages
        •    Check if Google PageSpeed ​​Insights is not shown
      Given the Google PageSpeed settings tab in the Site Scope section
      When the Enable Google PageSpeed Insights check is unchecked
      Then the "Google PageSpeed Insights" tab is visible from the Site settings of any of the sites in the instance, and it is unchecked for all those sites
      3 - Medium

      Test Name: APIVisibleInSites UncheckedInstanceSettingsSiteScopeThenUncheckedAtSiteSettings
      Steps:

      •  Start Portal
      •    Navigate to Application Menu> Control Panel> Configuration> System Settings > Pages
      •    Go to session Site Scope
      •    Uncheck Google PageSpeed Insights
      •   Go to Configuration of site > Site Settings > Pages
        •    Check if Google PageSpeed ​​Insights is show, but it is unchecked
      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: ChooseAnOptionEqualToDesktop DefaultStrategyAtInstanceSettings
      Steps:

      • Start Panel
      • Configure the Canonical URL and Google Page Speed ​​API Key
      • Go to Configuration of site> Site Settings > Pages > Google PageSpeed Insights
      • In Preferred Strategy
        • change to Desktop
      • Go to the page audit panel
      • Check Accessibility and SEO errors
      • Go to Configuration of site> Site Settings > Pages > Google PageSpeed Insights
      • In Preferred Strategy
        • Change to Choose an option
      • Go to the page audit panel
        • Check if Accessibility and SEO errors have not been changed
      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: ErrorsForMobileValue MobileStrategyAtInstanceSettings**
      Steps:

      • Start Panel
      • Configure the Canonical URL and Google Page Speed ​​API Key
      • Go to Configuration of site> Site Settings > Pages > Google PageSpeed Insights
      • In Preferred Strategy
        • Define the strategy for Mobile
      • Go to the page audit panel
        • Check if these errors *Small Tap Targets, Incorrect Aspect Ratios and Illegible font sizes are retrieved *
      Given any value in the Instance settings Site scope section
      Then all sites shows the same value (also void fields)
      5 - Critical

      Test Name: HierarchyOfInstanceSettings InstanceSettingsHierarchy
      Steps:

      •  Start Portal
      •  Navigate to Application Menu> Control Panel> Configuration> Instance Settings > Pages
      •  Go to session Site Scope
        • Change API key and preferred strategy
      • Go to Configuration of site> Site Settings > Pages > Google PageSpeed Insights
        • Check if the changes were shown
      Given any value in the Instance settings Site scope section
      When the same value has been overwritten in any of the sites
      Then the value in the site prevails over any changes in the Instance settings
      5 - Critical

      Test Name: ValuesOverWrittenInSites SiteSettingsHierarchyOverInstanceSettings
      Steps:

      •  Start Portal
      •  Navigate to Application Menu> Control Panel> Configuration> Instance Settings > Pages
      •  Go to session Site Scope
        • Check API key and preferred Strategy
      • Go to Configuration of site> Site Settings > Pages > Google PageSpeed Insights
        • Change API Key or Preferred Strategy
      •  Navigate to Application Menu> Control Panel> Configuration> Instance Settings > Pages
      •  Go to session Site Scope
        • Check that there have been no changes
      Given the PageSpeed Insights settings in the System Settings
      When Google PageSpeed Insights is not enabled (unchecked)
      Then the tab Google PageSpeed Insights is not visible from Instance settings
      4 - High

      Test Name: TabGoogleSpeedInvisibleInSites UncheckedSystemSettingsSystemScopeThenNotVisibleAtInstanceSettings
      Steps:

      •  Start Portal
      •  Navigate to Application Menu> Control Panel> Configuration> System Settings > Pages
      • Go to session System Scope
        • Unchecked Google PageSpeed Insights
      • Navigate to Application Menu> Control Panel> Configuration> Instance Settings > Pages
        • Check that the Google PageSpeed ​​​​Insights tab is not visible

        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