Skip to content

Performance hints fetching smoke test #131

@Mai-Saad

Description

@Mai-Saad

Scenario: Should fetch n URLs after fresh install/activate
Given: Fresh install of WPR
And: home page have > 10 links
When: activate WPR
And: wait
Then: The 1st n URLs in home + home URL are added to the database for mobile and desktop
And: No error in debug.log
related test: https://wpmediaqa.testrail.io/index.php?/cases/view/16023

Scenario: Shouldn't cause error if no links in home page
Given: home page is set to page with no links
When: clear performance hints
then: no error in debug.log
and: only home page mobile and desktop added to DB
https://wpmediaqa.testrail.io/index.php?/cases/view/15299&group_by=cases:section_id&group_id=5030&group_order=asc&display_deleted_cases=0

Scenario: Should fetch n URLs after switch theme
Given: WPR installed and active
And: home page have > 10 links
When: switch theme
And: wait
Then: The 1st n URLs in home + home URL are added to the database for mobile and desktop
And: No error in debug.log
related test: https://wpmediaqa.testrail.io/index.php?/cases/view/16026

Scenario: Should fetch n URLs after change permalinks
Given: WPR installed and active
And: home page have > 10 links
And: permalinks with /
When: change permalinks to be without /
And: wait
Then: The 1st n URLs in home + home URL are added to the database for mobile and desktop
And: No error in debug.log
related test: https://wpmediaqa.testrail.io/index.php?/cases/view/16025

Scenario: shouldn't fetch external URLs
Given: home set to page with external URL i.e homepage_ext_int_relative_abolute_URLs
When: clear performance hints
And: wait
Then: URLs added to DB are all internal links (have the domain of test site)
And: No error in debug.log
Related test : https://wpmediaqa.testrail.io/index.php?/cases/view/16030

Scenario: shouldn't fetch RSS feed nor rest API links
Given: home set to page with RSS feed URL i.e homepage_with_rss_feed_restAPI_links
When: clear performance hints
And: wait
Then: feed and rest API links not added to DB
And: rest of links are added to DB
And: No error in debug.log
Related test: https://wpmediaqa.testrail.io/index.php?/cases/view/16035

Scenario: shouldn't fetch home if the performance hints features are disabled using filter
Given: All performance hints features are disabled
And: WPR log is enabled
When: Install and activate WPR
Then: No links are in "add to queue request" in WPR log
And: No clear performance hints is there in admin bar
And: No error in debug.log
https://wpmediaqa.testrail.io/index.php?/cases/view/16027

Note:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions