From bb3d7e8046f0bf07dbcb17248cb11992224ff189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Castell=C3=B3n?= Date: Thu, 20 Feb 2020 10:38:18 +0100 Subject: [PATCH] MOBILE-3352 behat: Behat basic test for assignment --- mod/assignment/tests/behat/app_basic_usage.feature | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/assignment/tests/behat/app_basic_usage.feature b/mod/assignment/tests/behat/app_basic_usage.feature index 8bc5c0a1d..eaf010553 100755 --- a/mod/assignment/tests/behat/app_basic_usage.feature +++ b/mod/assignment/tests/behat/app_basic_usage.feature @@ -134,7 +134,7 @@ Feature: Test basic usage of assignment activity in app And I should see "Submission test 2 attempt" @app @3.8.0 @OK - Scenario: Add submission offline (online text) + Scenario: Add submission offline (online text), submit for grading offline and sync submissions When I enter the app And I log in as "student1" Then the header should be "Acceptance test site" in the app @@ -156,6 +156,8 @@ Feature: Test basic usage of assignment activity in app And I switch offline mode to "false" And I press the back button in the app And I press "assignment1" in the app + And I press "Display options" in the app + And I press "Refresh" in the app Then I should not see "This Assignment has offline data to be synchronised." And I should see "Submitted for grading"