Proyectos de Subversion Moodle

Rev

| 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
11
    When I click on "Disable Latest badges" "link"
12
    Then I should see "Latest badges disabled."
13
    And "Disable Latest badges" "link" should not exist
14
    But "Enable Latest badges" "link" should exist
15
    When I click on "Enable Latest badges" "link"
16
    Then I should see "Latest badges enabled."
17
    And "Enable Latest badges" "link" should not exist
18
    But "Disable Latest badges" "link" should exist
19
 
20
  Scenario: An administrator can control the enabled state of block plugins without JavaScript
21
    Given I am logged in as "admin"
22
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
23
    When I click on "Disable Latest badges" "link"
24
    Then I should see "Latest badges disabled."
25
    And "Disable Latest badges" "link" should not exist
26
    But "Enable Latest badges" "link" should exist
27
    When I click on "Enable Latest badges" "link"
28
    Then I should see "Latest badges enabled."
29
    And "Enable Latest badges" "link" should not exist
30
    But "Disable Latest badges" "link" should exist
31
 
32
  @javascript
33
  Scenario: An administrator can control the protected state of block plugins using JavaScript
34
    Given I am logged in as "admin"
35
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
36
    When I click on "Protect instances of Latest badges" "link"
37
    Then I should see "Latest badges block instances are protected."
38
    And "Protect instances of Latest badges" "link" should not exist
39
    But "Unprotect instances of Latest badges" "link" should exist
40
    And "Protect instances of Activities" "link" should exist
41
    When I click on "Unprotect instances of Latest badges" "link"
42
    Then I should see "Latest badges block instances are unprotected."
43
    And "Unprotect instances of Activities" "link" should not exist
44
    But "Protect instances of Latest badges" "link" should exist
45
    And "Protect instances of Activities" "link" should exist
46
 
47
  Scenario: An administrator can control the protected state of block plugins without JavaScript
48
    Given I am logged in as "admin"
49
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
50
    When I click on "Protect instances of Latest badges" "link"
51
    Then I should see "Latest badges block instances are protected."
52
    And "Protect instances of Latest badges" "link" should not exist
53
    But "Unprotect instances of Latest badges" "link" should exist
54
    And "Protect instances of Activities" "link" should exist
55
    When I click on "Unprotect instances of Latest badges" "link"
56
    Then I should see "Latest badges block instances are unprotected."
57
    And "Unprotect instances of Activities" "link" should not exist
58
    But "Protect instances of Latest badges" "link" should exist
59
    And "Protect instances of Activities" "link" should exist