mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-80689 form behat: move fixture file to the expected place
This commit is contained in:
parent
f960ce6d5b
commit
b784c144f8
@ -4,11 +4,11 @@ Feature: disabledIf functionality in forms
|
||||
As a user
|
||||
If I trigger the disabledIf condition then the form elements will be disabled
|
||||
|
||||
Background:
|
||||
Given I log in as "admin"
|
||||
# Note: if you are looking for the Behat tests for the filepicker widget,
|
||||
# you will find them in repository/tests/behat.
|
||||
|
||||
Scenario: The file manager is disabled when disabledIf conditions are met
|
||||
Given I am on fixture page "/lib/form/tests/behat/fixtures/filemanager_hideif_disabledif_form.php"
|
||||
Given I am on the "filemanager_hideif_disabledif_form" "core_form > Fixture" page logged in as "admin"
|
||||
When I click on "Disable" "radio"
|
||||
# Test standard file manager.
|
||||
Then the "disabled" attribute of "input#id_some_filemanager" "css_element" should contain "true"
|
||||
@ -16,7 +16,8 @@ Feature: disabledIf functionality in forms
|
||||
And the "disabled" attribute of "input#id_filemanager_group_some_filemanager_group" "css_element" should contain "true"
|
||||
|
||||
Scenario: The static element is disabled when 'eq' disabledIf conditions are met
|
||||
Given I am on fixture page "/lib/form/tests/behat/fixtures/static_hideif_disabledif_form.php"
|
||||
Given I log in as "admin"
|
||||
And I am on fixture page "/lib/form/tests/behat/fixtures/static_hideif_disabledif_form.php"
|
||||
And I should see "Static with form elements"
|
||||
When I click on "Disable" "radio"
|
||||
And the "class" attribute of "#fitem_id_some_static" "css_element" should contain "text-muted"
|
||||
|
@ -14,13 +14,13 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require_once(__DIR__ . '/../../../../../config.php');
|
||||
require_once(__DIR__ . '/../../../../config.php');
|
||||
|
||||
defined('BEHAT_SITE_RUNNING') || die();
|
||||
|
||||
global $CFG, $PAGE, $OUTPUT;
|
||||
require_once($CFG->libdir . '/formslib.php');
|
||||
$PAGE->set_url('/lib/form/tests/behat/fixtures/filemanager_hideif_disabledif_form.php');
|
||||
$PAGE->set_url('/lib/form/tests/fixtures/filemanager_hideif_disabledif_form.php');
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
require_login();
|
||||
$PAGE->set_context(core\context\system::instance());
|
Loading…
x
Reference in New Issue
Block a user