Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core
2
Feature: Page displaying with secure layout
3
  In order to securely perform tasks
4
  As a student
5
  I need not to be able to exit the page using the header logo
6
 
7
  Background:
8
    # Get to the fixture page.
9
    Given the following "courses" exist:
10
      | fullname | shortname | format |
11
      | Course 1 | C1        | topics |
12
    And the following "activities" exist:
13
      | activity   | name | intro                                                               | course | idnumber |
14
      | label      | L1   | <a href="../lib/tests/fixtures/securetestpage.php">Fixture link</a> | C1     | label1   |
15
 
16
  Scenario: Confirm that there is no header link
17
    Given I am on the "C1" "Course" page logged in as "admin"
18
    When I follow "Fixture link"
19
    Then I should see "Acceptance test site" in the "nav" "css_element"
20
    But "Acceptance test site" "link" should not exist
21
 
22
  Scenario: Confirm that the user name is displayed in the navbar without a link
23
    Given I log in as "admin"
24
    And the following config values are set as admin:
25
      | logininfoinsecurelayout | 1 |
26
    And I am on "Course 1" course homepage
27
    When I follow "Fixture link"
28
    Then I should see "You are logged in as Admin User" in the "nav" "css_element"
29
    But "Logout" "link" should not exist
30
 
31
  Scenario: Confirm that the custom menu items do not appear when language selection is enabled
32
    Given I log in as "admin"
33
    And the following config values are set as admin:
34
      | langmenuinsecurelayout | 1 |
35
      | custommenuitems | -This is a custom item\|/customurl/ |
36
    And I am on "Course 1" course homepage
37
    When I follow "Fixture link"
38
    Then I should not see "This is a custom item" in the "nav" "css_element"