Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_form
2
Feature: Read-only forms should work
3
  In order to use certain forms on large Moodle installations
4
  As a user
5
  Relevant featuers of non-editable forms should still work
6
 
7
  @javascript
8
  Scenario: Shortforms expand collapsing should work for read-only forms - one-section form
9
    Given I log in as "admin"
10
    And I visit "/lib/tests/fixtures/readonlyform.php?sections=1"
11
    When I press "First section"
12
    Then "Name" "field" should be visible
13
    And the field "Name" matches value "Important information"
14
    And I press "First section"
15
    And "Name" "field" should not be visible
16
 
17
  @javascript
18
  Scenario: Shortforms expand collapsing should work for read-only forms - two-section form
19
    Given I log in as "admin"
20
    And I visit "/lib/tests/fixtures/readonlyform.php?sections=2"
21
    When I press "Expand all"
22
    Then "Name" "field" should be visible
23
    And the field "Name" matches value "Important information"
24
    And "Other" "field" should be visible
25
    And the field "Other" matches value "Other information"
26
    And I press "Collapse all"
27
    And "Name" "field" should not be visible
28
    And "Other" "field" should not be visible