Merge branch 'MDL-71965-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Ilya Tregubov 2021-10-11 12:18:39 +07:00
commit b58338c001
4 changed files with 10 additions and 6 deletions

View file

@ -21,13 +21,15 @@ Feature: Within a moodle instance, an administrator should be able to modify lan
@javascript @javascript
Scenario: Edit an string but don't save it to lang pack. Scenario: Edit an string but don't save it to lang pack.
When I press "Apply changes and continue editing" When I press "Apply changes and continue editing"
Then I should see "Help and documentation" in the ".helplink" "css_element" And I click on "Show footer" "button"
And I should not see "moodle documents" in the ".helplink" "css_element" Then I should not see "moodle documents" in the "page-footer" "region"
And I should see "Help and documentation" in the "page-footer" "region"
@javascript @javascript
Scenario: Customize an string as admin and save it to lang pack. Scenario: Customize an string as admin and save it to lang pack.
Given I press "Save changes to the language pack" Given I press "Save changes to the language pack"
And I should see "There are 1 modified strings." And I should see "There are 1 modified strings."
When I click on "Continue" "button" When I click on "Continue" "button"
Then I should see "moodle documents" in the ".helplink" "css_element" And I click on "Show footer" "button"
And I should not see "Help and documentation" in the ".helplink" "css_element" Then I should not see "Help and documentation" in the "page-footer" "region"
And I should see "moodle documents" in the "page-footer" "region"

View file

@ -30,6 +30,7 @@ Feature: The timeline block allows users to see upcoming activities
| student1 | C1 | student | | student1 | C1 | student |
| student1 | C2 | student | | student1 | C2 | student |
| student1 | C3 | student | | student1 | C3 | student |
And I change window size to "large"
Scenario: Next 7 days in date view Scenario: Next 7 days in date view
Given I log in as "student1" Given I log in as "student1"

View file

@ -35,7 +35,8 @@ $string['presetfiles'] = 'Additional theme preset files';
$string['presetfiles_desc'] = 'Preset files can be used to dramatically alter the appearance of the theme. See <a href="https://docs.moodle.org/dev/Boost_Presets">Boost presets</a> for information on creating and sharing your own preset files, and see the <a href="https://archive.moodle.net/boost">Presets repository</a> for presets that others have shared.'; $string['presetfiles_desc'] = 'Preset files can be used to dramatically alter the appearance of the theme. See <a href="https://docs.moodle.org/dev/Boost_Presets">Boost presets</a> for information on creating and sharing your own preset files, and see the <a href="https://archive.moodle.net/boost">Presets repository</a> for presets that others have shared.';
$string['preset'] = 'Theme preset'; $string['preset'] = 'Theme preset';
$string['preset_desc'] = 'Pick a preset to broadly change the look of the theme.'; $string['preset_desc'] = 'Pick a preset to broadly change the look of the theme.';
$string['privacy:metadata'] = 'The Classic theme does not store any personal data.';
$string['region-side-post'] = 'Right'; $string['region-side-post'] = 'Right';
$string['region-side-pre'] = 'Left'; $string['region-side-pre'] = 'Left';
$string['sitetitle'] = 'Site title'; $string['sitetitle'] = 'Site title';
$string['privacy:metadata'] = 'The Classic theme does not store any personal data.'; $string['totop'] = 'Go to top';

View file

@ -29,7 +29,7 @@
}} }}
<div id="goto-top-link"> <div id="goto-top-link">
{{! go to top is sticky to footer so needs to be sibling }} {{! go to top is sticky to footer so needs to be sibling }}
<a class="btn btn-light" role="button" href="#" aria-label="{{#str}} totop, theme_boost {{/str}}"> <a class="btn btn-light" role="button" href="#" aria-label="{{#str}} totop, theme_classic {{/str}}">
{{#pix}} i/up, core{{/pix}} {{#pix}} i/up, core{{/pix}}
</a> </a>
</div> </div>