__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@mod @mod_glossary @_file_upload
Feature: Importing glossary entries
In order to add glossary entries by bulk
As a teacher
I need to be able to import glossary entries from a file
Background:
Given the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Terry1 | Teacher1 | teacher1@example.com |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
And the following "activities" exist:
| activity | course | idnumber | name |
| glossary | C1 | glossary1 | Glossary 1 |
And the following "blocks" exist:
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
| recent_activity | Course | C1 | course-view-* | side-pre |
| tags | Course | C1 | course-view-* | side-pre |
And I am on the "Glossary 1" "glossary activity" page logged in as teacher1
@javascript @block_recent_activity
Scenario: Importing glossary entries and checking the Recent activity block
Given I press "Import entries"
And I upload "mod/glossary/tests/fixtures/texfilter_glossary_en.xml" file to "File to import" filemanager
When I press "Submit"
Then I should see "103" in the "Total entries:" "table_row"
And I should see "103" in the "Imported entries:" "table_row"
And I am on "Course 1" course homepage
And I should see "Added Glossary" in the "Recent activity" "block"
And I should see "New glossary entries:" in the "Recent activity" "block"
@javascript @block_tags
Scenario: Importing glossary entries and checking Tags block
Given I press "Import entries"
And I upload "mod/glossary/tests/fixtures/musicians.xml" file to "File to import" filemanager
When I press "Submit"
And I am on "Course 1" course homepage
And I click on "Beatles" "link" in the "Tags" "block"
Then I should see "Paul McCartney"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| behat_mod_glossary.php | File | 2.96 KB | 0777 |
|
| categories.feature | File | 6 KB | 0777 |
|
| create_entry.feature | File | 2.22 KB | 0777 |
|
| edit_tags.feature | File | 5.69 KB | 0777 |
|
| entries_always_editable.feature | File | 1.62 KB | 0777 |
|
| entries_require_approval.feature | File | 3.63 KB | 0777 |
|
| glossary_activity_completion.feature | File | 4.61 KB | 0777 |
|
| glossary_activity_completion_pass_grade.feature | File | 6.3 KB | 0777 |
|
| glossary_display_formats.feature | File | 4.42 KB | 0777 |
|
| import_entries.feature | File | 2.1 KB | 0777 |
|
| prevent_duplicate_entries.feature | File | 1.5 KB | 0777 |
|
| print_friendly_version.feature | File | 2.11 KB | 0777 |
|
| search_entries.feature | File | 3.32 KB | 0777 |
|