source: moodle/trunk/fuentes/admin/tests/behat/display_short_names.feature @ 1331

Last change on this file since 1331 was 1331, checked in by jrpelegrina, 3 years ago

Updated to moodle 3.0.3

File size: 1.0 KB
Line 
1@core @core_admin
2Feature: Display extended course names
3  In order to display more info about the courses
4  As an admin
5  I need to display courses short names along with courses full names
6
7  Background:
8    Given the following "courses" exist:
9      | fullname | shortname | category |
10      | Course fullname | C_shortname | 0 |
11    And I log in as "admin"
12    And I am on site homepage
13
14  Scenario: Courses list without extended course names (default value)
15    Then I should see "Course fullname"
16    And I should not see "C_shortname Course fullname"
17
18  Scenario: Courses list with extended course names
19    Given I expand "Site administration" node
20    And I click on "Courses" "link" in the "//div[@id='settingsnav']/descendant::li[contains(concat(' ', normalize-space(@class), ' '), ' type_setting ')][contains(., 'Appearance')]" "xpath_element"
21    And I set the field "Display extended course names" to "1"
22    When I press "Save changes"
23    And I am on site homepage
24    Then I should see "C_shortname Course fullname"
Note: See TracBrowser for help on using the repository browser.