MOBILE-4081 behat: Use mod_data field generators
This commit is contained in:
		
							parent
							
								
									5153d7f020
								
							
						
					
					
						commit
						df9ff60847
					
				| @ -21,16 +21,10 @@ Feature: Users can manage entries in database activities | |||||||
|     And the following "activities" exist: |     And the following "activities" exist: | ||||||
|     | activity | name      | intro        | course | idnumber | |     | activity | name      | intro        | course | idnumber | | ||||||
|     | data     | Web links | Useful links | C1     | data1    | |     | data     | Web links | Useful links | C1     | data1    | | ||||||
|     And I log in as "teacher1" |     And the following "mod_data > fields" exist: | ||||||
|     And I am on "Course 1" course homepage |     | database | type | name        | description      | | ||||||
|     # TODO Create and use a generator for database fields. |     | data1    | text | URL         | URL link         | | ||||||
|     And I add a "Short text" field to "Web links" database and I fill the form with: |     | data1    | text | Description | Link description | | ||||||
|       | Field name | URL | |  | ||||||
|       | Field description | URL link | |  | ||||||
|     And I add a "Short text" field to "Web links" database and I fill the form with: |  | ||||||
|       | Field name | Description | |  | ||||||
|       | Field description | Link description | |  | ||||||
|     And I log out |  | ||||||
| 
 | 
 | ||||||
|   Scenario: Create entry |   Scenario: Create entry | ||||||
|     Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app |     Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app | ||||||
|  | |||||||
| @ -21,15 +21,10 @@ Feature: Users can store entries in database activities when offline and sync wh | |||||||
|     And the following "activities" exist: |     And the following "activities" exist: | ||||||
|     | activity | name      | intro        | course | idnumber | |     | activity | name      | intro        | course | idnumber | | ||||||
|     | data     | Web links | Useful links | C1     | data1    | |     | data     | Web links | Useful links | C1     | data1    | | ||||||
|     And I log in as "teacher1" |     And the following "mod_data > fields" exist: | ||||||
|     And I am on "Course 1" course homepage |     | database | type | name        | description      | | ||||||
|     And I add a "Short text" field to "Web links" database and I fill the form with: |     | data1    | text | URL         | URL link         | | ||||||
|       | Field name | URL | |     | data1    | text | Description | Link description | | ||||||
|       | Field description | URL link | |  | ||||||
|     And I add a "Short text" field to "Web links" database and I fill the form with: |  | ||||||
|       | Field name | Description | |  | ||||||
|       | Field description | Link description | |  | ||||||
|     And I log out |  | ||||||
| 
 | 
 | ||||||
|   Scenario: Create entry (offline) |   Scenario: Create entry (offline) | ||||||
|     Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app |     Given I entered the data activity "Web links" on course "Course 1" as "student1" in the app | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user