Skip to content

Commit e49ce12

Browse files
authored
Merge pull request #3 from call-learning/laurent-dev
Fix several issues
2 parents e909fd8 + bc33118 commit e49ce12

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Featured courses #
22

3-
[![Moodle Plugin CI](https://github.com/martin-call-learning/moodle-block_featured_courses/actions/workflows/main.yml/badge.svg)](https://github.com/martin-call-learning/moodle-block_featured_courses/actions/workflows/main.yml)
4-
5-
[![Build Status](https://travis-ci.org/call-learning/moodle-block-featured_courses.svg?branch=master)](https://travis-ci.org/call-learning/moodle-block-featured_courses)
3+
[![Moodle Plugin CI](https://github.com/call-learning/moodle-block_featured_courses/actions/workflows/main.yml/badge.svg)](https://github.com/call-learning/moodle-block_featured_courses/actions/workflows/main.yml)
64

75
A block to display of courses from the global list of courses.
86

lang/en/block_featured_courses.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
$string['config:selectedcourses'] = 'Selected course {no}';
2727
$string['featured_courses:addinstance'] = 'Add a featured_courses block';
2828
$string['featured_courses:myaddinstance'] = 'Add a featured_courses block to my moodle';
29-
$string['pluginname'] = 'Featured Courses';
29+
$string['pluginname'] = 'Featured courses';
3030
$string['removelastcourses'] = 'Remove last course';
31-
$string['viewcourse'] = 'View Course';
31+
$string['viewcourse'] = 'View course';

tests/behat/block_featured_courses.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Feature: Add a featured block on the dashboard
1414
Scenario: Add the block and set 3 featured courses
1515
Given I log in as "admin"
1616
Then I am on homepage
17-
And I turn editing mode on
17+
When I press "Customise this page"
1818
And I add the "Featured Courses" block
19-
And I configure the "Featured Courses" block
19+
And I configure the "Featured courses" block
2020
And I expand all fieldsets
2121
Then I should see "Title"
2222
And I set the field "Title" to "My featured courses"
@@ -34,9 +34,9 @@ Feature: Add a featured block on the dashboard
3434
@javascript
3535
Scenario: Add the block and set 3 featured courses and remove one after, only two should display
3636
Given I log in as "admin"
37-
Then I turn editing mode on
38-
And I add the "Featured Courses" block
39-
And I configure the "Featured Courses" block
37+
When I press "Customise this page"
38+
Then I add the "Featured courses" block
39+
And I configure the "Featured courses" block
4040
And I expand all fieldsets
4141
Then I should see "Title"
4242
And I set the field "Title" to "My featured courses"

0 commit comments

Comments
 (0)