Merge pull request #3356 from NoelDeMartin/MOBILE-4069

MOBILE-4069: Fix behat tests
main
Dani Palou 2022-08-02 12:51:56 +02:00 committed by GitHub
commit df3238b62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,4 @@
@block @block_timeline @app @javascript @lms_upto3.10
@block @block_timeline @app @javascript @lms_upto3.11
Feature: Timeline block.
Background:

View File

@ -46,7 +46,7 @@ Feature: Timeline block.
| assign | C3 | assign24 | Assignment 24 | ##+1 year## |
| assign | C3 | assign25 | Assignment 25 | ##+1 year## |
@lms_from3.11
@lms_from4.0
Scenario: See courses inside block
Given I entered the app as "student1"
Then I should find "Assignment 00" within "Timeline" "ion-card" in the app

View File

@ -23,6 +23,8 @@ Feature: Test basic usage of comments in app
| activity | name | intro | course | idnumber | comments |
| data | Data | Data info | C1 | data1 | 1 |
# 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
@ -74,6 +76,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

View File

@ -71,6 +71,8 @@ Feature: Test basic usage of one course in app
| activity | name | intro | course | idnumber | groupmode | section |
| workshop | Test workshop name | Test workshop | C1 | workshop | 0 | 3 |
# Skip in master until MDL-75353 is fixed
@lms_upto4.0
Scenario: View course contents
When I entered the course "Course 1" as "student1" in the app
Then the header should be "Course 1" in the app
@ -146,6 +148,8 @@ Feature: Test basic usage of one course in app
And I press "Test workshop name" in the app
Then the header should be "Test workshop name" in the app
# Skip in master until MDL-75353 is fixed
@lms_upto4.0
Scenario: View section contents
When I entered the course "Course 1" as "student1" in the app
Then the header should be "Course 1" in the app

View File

@ -73,7 +73,9 @@ Feature: Test basic usage of courses in app
When I press "Open block drawer" in the app
And I press "Grade" in the app
Then the header should be "assignment" in the app
And I should find "Test assignment description" in the app
When I pull to refresh in the app
Then I should find "Test assignment description" in the app
And I should find "Time remaining" in the app
When I press "Needs grading" in the app

View File

@ -118,7 +118,9 @@ Feature: Test basic usage of courses in app
When I press "Open block drawer" in the app
And I press "Grade" in the app
Then the header should be "assignment" in the app
And I should find "Test assignment description" in the app
When I pull to refresh in the app
Then I should find "Test assignment description" in the app
And I should find "Time remaining" in the app
When I press "Needs grading" in the app