source: moodle/trunk/fuentes/admin/tests/behat/set_admin_settings_value.feature @ 136

Last change on this file since 136 was 136, checked in by mabarracus, 4 years ago

Ported code to xenial

File size: 939 bytes
Line 
1@core @core_admin
2Feature: Set admin settings value
3  In order to set admin settings value
4  As an admin
5  I need to set admin setting value and verify it is applied
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 should see "Course fullname"
13    And I should not see "C_shortname Course fullname"
14
15  Scenario: set admin value with full name
16    Given I set the following administration settings values:
17      | Display extended course names | 1 |
18    When I press "Save changes"
19    And I am on homepage
20    Then I should see "C_shortname Course fullname"
21
22  Scenario: set admin value with short name
23    Given I set the following administration settings values:
24      | courselistshortnames | 1 |
25    When I press "Save changes"
26    And I am on homepage
27    Then I should see "C_shortname Course fullname"
Note: See TracBrowser for help on using the repository browser.