From 8e86fbd924ae20286c957ed19b285805f001816f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 29 Nov 2021 13:02:45 +0100 Subject: [PATCH] MOBILE-3833 behat: Adapt performance tests --- tests/behat/performance.feature | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/behat/performance.feature b/tests/behat/performance.feature index 264e395af..f90a81ce9 100644 --- a/tests/behat/performance.feature +++ b/tests/behat/performance.feature @@ -56,7 +56,7 @@ Feature: Measure performance. And I set the field "Your site" to "$WWWROOT" in the app And I press "Connect to your site" in the app And I log in as "student1" - Then I should find "Course 1" in the app + And I should find "Timeline" in the app When I stop measuring "Login" Then "Login" should have taken less than 10 seconds @@ -69,16 +69,18 @@ Feature: Measure performance. And I set the field "Your site" to "$WWWROOT" in the app And I press "Connect to your site" in the app And I log in as "student1" - Then I should find "Course 1" in the app + Then I press "My courses" in the app + And I should find "Course 1" in the app When I reload the page And I start measuring "Open Activity" And I wait the app to restart Then I should find "Course 1" in the app - When I press "Course 1" in the app + When I enter the course "Course 1" in the app And I press "Choice course 1" in the app Then I should find "Option 1" in the app When I stop measuring "Open Activity" - Then "Open Activity" should have taken less than 7 seconds + # TODO Check back to 7s or review perfect timings + Then "Open Activity" should have taken less than 8 seconds