Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 37... Línea 37...
37
    And I should see "Static with form elements"
37
    And I should see "Static with form elements"
38
    When I click on "Hide" "radio"
38
    When I click on "Hide" "radio"
39
    Then I should not see "Static with form elements"
39
    Then I should not see "Static with form elements"
40
    And I click on "Enable" "radio"
40
    And I click on "Enable" "radio"
41
    And I should see "Static with form elements"
41
    And I should see "Static with form elements"
-
 
42
 
-
 
43
  Scenario: The file picker element is hidden when 'eq' hideIf conditions are met
-
 
44
    Given I am on the "filepicker_hideif_disabledif_form" "core_form > Fixture" page logged in as "admin"
-
 
45
    And "#fitem_id_filepicker" "css_element" should be visible
-
 
46
    When I click on "Hide" "radio"
-
 
47
    Then "#fitem_id_filepicker" "css_element" should not be visible
-
 
48
 
-
 
49
  @_file_upload
-
 
50
  Scenario: The other element is hidden when the file picker is not empty
-
 
51
    Given I am on the "filepicker_hideif_disabledif_form" "core_form > Fixture" page logged in as "admin"
-
 
52
    When I upload "lib/ddl/tests/fixtures/xmldb_table.xml" file to "File picker" filemanager
-
 
53
    Then I should not see "inputtext2"
-
 
54
 
-
 
55
  Scenario Outline: Inputs are hidden when hideIf conditions dependent on a multi-select element are met
-
 
56
    Given I am on the "multiselect_hideif_disabledif_form" "core_form > Fixture" page
-
 
57
    When I set the field "multiselect1" to "<selection>"
-
 
58
    Then I <shouldSeeEq_> see "Hide if selection 'eq' []"
-
 
59
    And I <shouldSeeIn_> see "Hide if selection 'in' []"
-
 
60
    And I <shouldSeeNeq_> see "Hide if selection 'neq' []"
-
 
61
    And I <shouldSeeEq1> see "Hide if selection 'eq' ['1']"
-
 
62
    And I <shouldSeeIn1> see "Hide if selection 'in' ['1']"
-
 
63
    And I <shouldSeeNeq1> see "Hide if selection 'neq' ['1']"
-
 
64
    And I <shouldSeeEq12> see "Hide if selection 'eq' ['1', '2']"
-
 
65
    And I <shouldSeeIn12> see "Hide if selection 'in' ['1', '2']"
-
 
66
    And I <shouldSeeNeq12> see "Hide if selection 'neq' ['1', '2']"
-
 
67
 
-
 
68
    Examples:
-
 
69
      | selection          | shouldSeeEq_ | shouldSeeIn_ | shouldSeeNeq_ | shouldSeeEq1 | shouldSeeIn1 | shouldSeeNeq1 | shouldSeeEq12 | shouldSeeIn12 | shouldSeeNeq12 |
-
 
70
      |                    | should not   | should not   | should        | should       | should       | should not    | should        | should        | should not     |
-
 
71
      | Option 1           | should       | should       | should not    | should not   | should not   | should        | should        | should not    | should not     |
-
 
72
      | Option 2           | should       | should       | should not    | should       | should       | should not    | should        | should not    | should not     |
-
 
73
      | Option 1, Option 2 | should       | should       | should not    | should       | should       | should not    | should not    | should not    | should         |