Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_admin
2
Feature: An administrator can manage Block plugins
3
    In order to alter the user experience
4
    As an admin
5
    I can manage block plugins
6
 
7
  @javascript
8
  Scenario: An administrator can control the enabled state of block plugins using JavaScript
9
    Given I am logged in as "admin"
10
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
1441 ariadna 11
    When I toggle the "Disable Latest badges" admin switch "off"
12
    And I should see "Latest badges disabled."
13
    And I reload the page
14
    Then I should see "Enable Latest badges"
15
    And I toggle the "Enable Latest badges" admin switch "on"
16
    And I should see "Latest badges enabled."
17
    And I reload the page
18
    Then I should see "Disable Latest badges"
1 efrain 19
 
20
  @javascript
21
  Scenario: An administrator can control the protected state of block plugins using JavaScript
22
    Given I am logged in as "admin"
23
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
24
    When I click on "Protect instances of Latest badges" "link"
25
    Then I should see "Latest badges block instances are protected."
26
    And "Protect instances of Latest badges" "link" should not exist
27
    But "Unprotect instances of Latest badges" "link" should exist
28
    And "Protect instances of Activities" "link" should exist
29
    When I click on "Unprotect instances of Latest badges" "link"
30
    Then I should see "Latest badges block instances are unprotected."
31
    And "Unprotect instances of Activities" "link" should not exist
32
    But "Protect instances of Latest badges" "link" should exist
33
    And "Protect instances of Activities" "link" should exist
34
 
35
  Scenario: An administrator can control the protected state of block plugins without JavaScript
36
    Given I am logged in as "admin"
37
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
38
    When I click on "Protect instances of Latest badges" "link"
39
    Then I should see "Latest badges block instances are protected."
40
    And "Protect instances of Latest badges" "link" should not exist
41
    But "Unprotect instances of Latest badges" "link" should exist
42
    And "Protect instances of Activities" "link" should exist
43
    When I click on "Unprotect instances of Latest badges" "link"
44
    Then I should see "Latest badges block instances are unprotected."
45
    And "Unprotect instances of Activities" "link" should not exist
46
    But "Protect instances of Latest badges" "link" should exist
47
    And "Protect instances of Activities" "link" should exist