-
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
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
- In page audit panel, click 'Illegible Font Sizes'
- Assert if 10 elements are displayed
- Click 'View More'
- 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
- In page audit panel, click 'Missing Meta Description'
- 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
- In the "Page is blocked for indexing" check if
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
- In page audit panel, click 'Invalid Canonical URL'
- 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..'
- relates
-
LPS-132234 As a content manager, I want to know the detail of the failing elements affecting my page
-
- Closed
-