Skip to content

Commit

Permalink
Merge pull request #777 from kordan/lets_pass_classic
Browse files Browse the repository at this point in the history
Lets pass classic
  • Loading branch information
stronk7 authored Oct 20, 2023
2 parents ec2749c + 9a851bd commit 6bd86c9
Show file tree
Hide file tree
Showing 82 changed files with 204 additions and 275 deletions.
3 changes: 1 addition & 2 deletions field/age/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create an age item
And surveypro "Test age setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test age setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test age setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an age item
And I set the field "typeplugin" to "Age [yy/mm]"
Expand Down
3 changes: 1 addition & 2 deletions field/age/tests/behat/submit_age.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using an age item
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Age test | To test submission of age item | Age submission test |
And I am on the "Age test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Age test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Age"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/age/tests/behat/use_advanced_elements.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Use reserved elements
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Reserved element test | To test reserved element | Reserved elements |
And I am on the "Reserved element test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Reserved element test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add the first age item generally available
And I set the field "typeplugin" to "Age [yy/mm]"
Expand Down
3 changes: 1 addition & 2 deletions field/autofill/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create an autofill item
And surveypro "Test autofill setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test autofill setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test autofill setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an autofill item
And I set the field "typeplugin" to "Autofill"
Expand Down
3 changes: 1 addition & 2 deletions field/autofill/tests/behat/submit_autofill.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using an autofill item
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Autofill test | To test submission of autofill item | Autofill submission test |
And I am on the "Autofill test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Autofill test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Autofill"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/boolean/tests/behat/customnumebr_inclusion.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Include custom numbers into element question/content
And surveypro "VerifyCN survey" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "VerifyCN survey" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "VerifyCN survey" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1
And I follow "edit_item_1"
And I expand all fieldsets
And I set the following fields to these values:
Expand Down
3 changes: 1 addition & 2 deletions field/boolean/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create a boolean item
And surveypro "Test boolean setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test boolean setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test boolean setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an boolean item
And I set the field "typeplugin" to "Boolean"
Expand Down
3 changes: 1 addition & 2 deletions field/boolean/tests/behat/submit_boolean.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using a boolean item
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Boolean test | To test submission of boolean item | Boolean submission test |
And I am on the "Boolean test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Boolean test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Boolean"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/character/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create a character item
And surveypro "Test character setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test character setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test character setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an character item
And I set the field "typeplugin" to "Text (short)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using character item and check form validation (1 of 7)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Character item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1
And I set the field "typeplugin" to "Text (short)"
And I press "Add"
And I expand all fieldsets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using character item and check form validation (2 of 7)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Character item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Text (short)"
And I press "Add"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using character item and check form validation (3 of 7)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Character item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Text (short)"
And I press "Add"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using character item and check form validation (4 of 7)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Character item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Text (short)"
And I press "Add"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using character item and check form validation (5 of 7)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Character item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Text (short)"
And I press "Add"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using character item and check form validation (6 of 7)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Character item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Text (short)"
And I press "Add"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using character item and check form validation (7 of 7)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Character item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Text (short)"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/character/tests/behat/trim.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Test the use of character trim
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Test character trim | Test character trim | Character trim test |
And I am on the "Test character trim" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test character trim" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an character item
And I set the field "typeplugin" to "Text (short)"
Expand Down
3 changes: 1 addition & 2 deletions field/checkbox/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create a checkbox item
And surveypro "Test checkbox setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test checkbox setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test checkbox setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an checkbox item
And I set the field "typeplugin" to "Checkbox"
Expand Down
3 changes: 1 addition & 2 deletions field/checkbox/tests/behat/settings_configuration_01.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Submit using checkbox item and check form validation (1 of 4)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Checkbox item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Checkbox"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/checkbox/tests/behat/settings_configuration_02.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Submit using checkbox item and check form validation (2 of 4)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Checkbox item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Checkbox"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/checkbox/tests/behat/settings_configuration_03.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Submit using checkbox item and check form validation (3 of 4)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Checkbox item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Checkbox"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/checkbox/tests/behat/settings_configuration_04.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Submit using checkbox item and check form validation (4 of 4)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Checkbox item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Checkbox"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/checkbox/tests/behat/settings_configuration_05.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ Feature: Submit using checkbox item and check form validation
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Checkbox item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Checkbox"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/date/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create a date item
And surveypro "Test date setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test date setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test date setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an date item
And I set the field "typeplugin" to "Date [dd/mm/yyyy]"
Expand Down
3 changes: 1 addition & 2 deletions field/date/tests/behat/submit_date.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using a date item
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Date test | To test submission of date item | Date submission test |
And I am on the "Date test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Date test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Date [dd/mm/yyyy]"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/datetime/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create a datetime item
And surveypro "Test datetime setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test datetime setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test datetime setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an datetime item
And I set the field "typeplugin" to "Date and time [dd/mm/yyyy;hh:mm]"
Expand Down
3 changes: 1 addition & 2 deletions field/datetime/tests/behat/submit_datetime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using a datetime item
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Datetime test | To test submission of date item | Datetime submission test |
And I am on the "Datetime test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Datetime test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Date and time [dd/mm/yyyy;hh:mm]"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/fileupload/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create a fileupload item
And surveypro "Test fileupload setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test fileupload setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test fileupload setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an fileupload item
And I set the field "typeplugin" to "Attachment"
Expand Down
3 changes: 1 addition & 2 deletions field/fileupload/tests/behat/submit_attachment.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using a fileupload item
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Attachment test | To test submission of attachment item | Attachment submission test |
And I am on the "Attachment test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Attachment test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Attachment"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/integer/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create an integer item
And surveypro "Test integer setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test integer setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test integer setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an integer item
And I set the field "typeplugin" to "Integer"
Expand Down
3 changes: 1 addition & 2 deletions field/integer/tests/behat/submit_integer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ Feature: Submit using an integer item
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Integer test | To test submission of date item | Integer submission test |
And I am on the "Integer test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Integer test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Integer (small)"
And I press "Add"
Expand Down
3 changes: 1 addition & 2 deletions field/multiselect/tests/behat/itemform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Create a multiselect item
And surveypro "Test multiselect setup form" contains the following items:
| type | plugin |
| field | boolean |
And I am on the "Test multiselect setup form" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Test multiselect setup form" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

# add an multiselect item
And I set the field "typeplugin" to "Multiple selection"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Submit using multiselect item and check form validation (1 of 4)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Multiselect item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Multiple selection"
And I press "Add"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Feature: Submit using multiselect item and check form validation (2 of 4)
And the following "activities" exist:
| activity | name | intro | course |
| surveypro | Surveypro test | For testing backup | Multiselect item |
And I am on the "Surveypro test" "surveypro activity" page logged in as teacher1
And I select "Layout" from secondary navigation
And I am on the "Surveypro test" "mod_surveypro > Layout from secondary navigation" page logged in as teacher1

And I set the field "typeplugin" to "Multiple selection"
And I press "Add"
Expand Down
Loading

0 comments on commit 6bd86c9

Please sign in to comment.