Skip to content

Commit

Permalink
MDL-75492 mod_data: Removing duplicated behats
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaia Anabitarte committed Nov 14, 2022
1 parent 7c3188b commit 5a88040
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions mod/data/tests/behat/import_presets.feature
Expand Up @@ -70,30 +70,6 @@ Feature: Users can import presets
And I should see "image"
And I should see "Create a new field" in the "image" "table_row"

Scenario: Teacher can import from field page on an empty database
Given I am on the "Mountain landscapes" "data activity" page logged in as teacher1
And I follow "Presets"
And I click on "Actions" "button"
And I choose "Import preset" in the open action menu
And I upload "mod/data/tests/fixtures/image_gallery_preset.zip" file to "Preset file" filemanager
When I click on "Import preset and apply" "button"
Then I should not see "Field mappings"
And I should see "Image" in the "image" "table_row"

Scenario: Teacher can import from field page on a database with fields
Given the following "mod_data > fields" exist:
| database | type | name | description |
| data1 | text | Test field name | Test field description |
And I am on the "Mountain landscapes" "data activity" page logged in as teacher1
And I follow "Presets"
And I click on "Actions" "button"
And I choose "Import preset" in the open action menu
And I upload "mod/data/tests/fixtures/image_gallery_preset.zip" file to "Preset file" filemanager
When I click on "Import preset and apply" "button"
Then I should see "Field mappings"
And I should see "image"
And I should see "Create a new field" in the "image" "table_row"

Scenario: Teacher can import from field page on a database with entries
And the following "mod_data > fields" exist:
| database | type | name | description |
Expand Down

0 comments on commit 5a88040

Please sign in to comment.