From 2ad7d3fa41ce8185dde9f7829e8b7eae5c816e83 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 11 Aug 2022 14:00:21 +0200 Subject: [PATCH] MOBILE-4081 comments: Restore behat tests --- .../comments/tests/behat/basic_usage.feature | 32 ++----------------- 1 file changed, 3 insertions(+), 29 deletions(-) diff --git a/src/core/features/comments/tests/behat/basic_usage.feature b/src/core/features/comments/tests/behat/basic_usage.feature index 6f4c9ff3f..bd6d90a43 100644 --- a/src/core/features/comments/tests/behat/basic_usage.feature +++ b/src/core/features/comments/tests/behat/basic_usage.feature @@ -22,25 +22,13 @@ Feature: Test basic usage of comments in app And the following "activities" exist: | activity | name | intro | course | idnumber | comments | | data | Data | Data info | C1 | data1 | 1 | + And the following "mod_data > fields" exist: + | database | type | name | description | + | data1 | text | Test field name | Test field description | - # Skip in master until MDL-75353 is fixed - @lms_upto4.0 Scenario: Add comments & Delete comments (database) # Create database entry and comment as a teacher Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app - And I press "Information" in the app - # TODO Create and use a generator for database fields. - And I press "Open in browser" in the app - And I switch to the browser tab opened by the app - And I log in as "teacher1" - And I add a "Text input" field to "Data" database and I fill the form with: - | Field name | Test field name | - | Field description | Test field description | - And I press "Save" - And I close the browser tab opened by the app - And I close the popup in the app - - When I pull to refresh in the app And I press "Add entries" in the app And I set the field "Test field name" to "Test" in the app And I press "Save" in the app @@ -76,22 +64,8 @@ Feature: Test basic usage of comments in app When I press the back button in the app Then I should find "Comments (1)" in the app - # Skip in master until MDL-75353 is fixed - @lms_upto4.0 Scenario: Add comments offline & Delete comments offline & Sync comments (database) Given I entered the data activity "Data" on course "Course 1" as "teacher1" in the app - And I press "Information" in the app - And I press "Open in browser" in the app - And I switch to the browser tab opened by the app - And I log in as "teacher1" - And I add a "Text input" field to "Data" database and I fill the form with: - | Field name | Test field name | - | Field description | Test field description | - And I press "Save" - And I close the browser tab opened by the app - And I close the popup in the app - - When I pull to refresh in the app And I press "Add entries" in the app And I set the field "Test field name" to "Test" in the app And I press "Save" in the app