mirror of
https://github.com/moodle/moodle.git
synced 2025-02-25 20:43:33 +01:00
In the section settings page, replace the custom checkbox element used for renaming with a standard input text field featuring a placeholder. This adjustment aims to enhance user experience by simplifying the interaction and aligning with modern design standards.
45 lines
1.9 KiB
Gherkin
45 lines
1.9 KiB
Gherkin
@core @core_course
|
|
Feature: Site home activities section
|
|
In order to show a display activities in the frontpage
|
|
As an admin
|
|
I need to edit the frontpage section
|
|
|
|
Background:
|
|
Given the following config values are set as admin:
|
|
| numsections | 1 |
|
|
|
|
Scenario: Activities should appear in frontpage
|
|
Given the following "activities" exist:
|
|
| activity | course | section | name | intro | idnumber |
|
|
| assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign0 |
|
|
When I log in as "admin"
|
|
And I am on site homepage
|
|
Then I should see "Frontpage assignment" in the "region-main" "region"
|
|
|
|
@javascript
|
|
Scenario: Section name does appears in frontpage
|
|
Given the following "activities" exist:
|
|
| activity | course | section | name | intro | idnumber |
|
|
| assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign0 |
|
|
And I log in as "admin"
|
|
And I am on site homepage
|
|
And I turn editing mode on
|
|
And I click on "Edit" "link" in the "region-main" "region"
|
|
And I set the field "Section name" to "New section name"
|
|
When I press "Save changes"
|
|
And I should see "New section name" in the "region-main" "region"
|
|
Then I turn editing mode off
|
|
And I should see "New section name" in the "region-main" "region"
|
|
|
|
@javascript
|
|
Scenario: Section description appears in the frontpage
|
|
Given I log in as "admin"
|
|
And I am on site homepage
|
|
And I turn editing mode on
|
|
And I click on "Edit" "link" in the "region-main" "region"
|
|
And I set the field "Description" to "New section description"
|
|
When I press "Save changes"
|
|
And I should see "New section description" in the "region-main" "region"
|
|
Then I turn editing mode off
|
|
And I should see "New section description" in the "region-main" "region"
|