first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
@@ -0,0 +1,22 @@
@repository @repository_wikimedia @javascript
Feature: Wikimedia repository
In order to update my profile picture
As an admin
I need to choose a picture from Wikimedia
Scenario: Users can add profile picture using wikimedia
Given I log in as "admin"
And I open my profile in edit mode
And I click on "Add..." "button" in the "New picture" "form_row"
# Upload a new user picture using Wikimedia repository.
And I follow "Wikimedia"
And I set the field "Search for:" to "cat"
And I click on "Submit" "button"
# Click on the link of the first search result.
And I click on "a.fp-file" "css_element"
And I click on "Select this file" "button"
When I click on "Update profile" "button"
# New profile picture.
Then "//img[contains(@class, 'userpicture')]" "xpath_element" should exist
# Default profile picture should not exist any more.
And "//img[contains(@class, 'defaultuserpic')]" "xpath_element" should not exist
@@ -0,0 +1,35 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Wikimedia repository data generator
*
* @package repository_wikimedia
* @category test
* @copyright 2013 Frédéric Massart
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Wikimedia repository data generator class
*
* @package repository_wikimedia
* @category test
* @copyright 2013 Frédéric Massart
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class repository_wikimedia_generator extends testing_repository_generator {
}