2021-09-23 10:39:35 +00:00
|
|
|
@app @javascript @performance
|
|
|
|
Feature: Measure performance.
|
|
|
|
|
2021-10-04 15:14:56 +00:00
|
|
|
Scenario: First Contentful Paint
|
2021-09-28 15:47:36 +00:00
|
|
|
Given I start measuring "First Contentful Paint"
|
2021-09-23 10:39:35 +00:00
|
|
|
When I launch the app runtime
|
|
|
|
Then I should find "Welcome to the Moodle App!" in the app
|
|
|
|
|
2021-09-28 15:47:36 +00:00
|
|
|
When I stop measuring "First Contentful Paint"
|
|
|
|
Then "First Contentful Paint" should have taken less than 6 seconds
|
2021-09-23 10:39:35 +00:00
|
|
|
|
2021-10-04 15:14:56 +00:00
|
|
|
Scenario: Time to Interactive
|
2021-09-28 15:47:36 +00:00
|
|
|
Given I start measuring "Time to Interactive"
|
2021-09-23 10:39:35 +00:00
|
|
|
When I launch the app runtime
|
|
|
|
Then I should find "Welcome to the Moodle App!" in the app
|
|
|
|
|
|
|
|
When I press "Skip" in the app
|
2021-09-28 15:47:36 +00:00
|
|
|
Then I should not find "Skip" in the app
|
|
|
|
And I should find "Connect to Moodle" in the app
|
2021-09-23 10:39:35 +00:00
|
|
|
|
2021-09-28 15:47:36 +00:00
|
|
|
When I stop measuring "Time to Interactive"
|
|
|
|
Then "Time to Interactive" should have taken less than 7 seconds
|
2021-09-23 10:39:35 +00:00
|
|
|
|
2021-10-04 15:14:56 +00:00
|
|
|
Scenario: Total Blocking Time
|
2021-09-23 10:39:35 +00:00
|
|
|
Given I launch the app runtime
|
|
|
|
Then I should find "Welcome to the Moodle App!" in the app
|
|
|
|
|
2021-09-28 15:47:36 +00:00
|
|
|
When I start measuring "Total Blocking Time"
|
2021-09-23 10:39:35 +00:00
|
|
|
And I press "Skip" in the app
|
2021-09-28 15:47:36 +00:00
|
|
|
Then I should not find "Skip" in the app
|
|
|
|
And I should find "Connect to Moodle" in the app
|
2021-09-23 10:39:35 +00:00
|
|
|
|
2021-09-28 15:47:36 +00:00
|
|
|
When I stop measuring "Total Blocking Time"
|
|
|
|
Then "Total Blocking Time" should have taken less than 2 seconds
|