From c0354cb183c0099f00be33b7d4ece20bc9d96167 Mon Sep 17 00:00:00 2001 From: vasanthlmsace Date: Thu, 14 Nov 2024 11:42:40 +0530 Subject: [PATCH] Update the source. --- .github/workflows/moodle-ci.yml | 12 ++++++------ lib.php | 3 +++ tests/behat/format_kickstart_visibility.feature | 5 +++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 620727f..f6a95c2 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -31,12 +31,12 @@ jobs: - php: '8.2' moodle-branch: 'MOODLE_405_STABLE' database: 'pgsql' - # - php: '8.1' - # moodle-branch: 'MOODLE_404_STABLE' - # database: 'mariadb' - # - php: '8.0' - # moodle-branch: 'MOODLE_403_STABLE' - # database: 'pgsql' + - php: '8.1' + moodle-branch: 'MOODLE_404_STABLE' + database: 'mariadb' + - php: '8.0' + moodle-branch: 'MOODLE_403_STABLE' + database: 'pgsql' - php: '7.4' moodle-branch: 'MOODLE_401_STABLE' database: 'mariadb' diff --git a/lib.php b/lib.php index e7650fc..8c13cd9 100644 --- a/lib.php +++ b/lib.php @@ -26,6 +26,9 @@ require_once($CFG->dirroot. '/course/format/lib.php'); + +use format_kickstart\output\course_template_list; + /** * Main class for the Kickstart course format * diff --git a/tests/behat/format_kickstart_visibility.feature b/tests/behat/format_kickstart_visibility.feature index ecf2259..cb9867a 100644 --- a/tests/behat/format_kickstart_visibility.feature +++ b/tests/behat/format_kickstart_visibility.feature @@ -144,6 +144,7 @@ Feature: Check the kickstart course format features. And I click on "Import" "button" in the ".modal" "css_element" And I start watching to see if a new page loads Then I should see "Course 1" + Then I wait "5" seconds Then ".course-content .topics" "css_element" should exist And I navigate to "Plugins > Course formats > Manage templates" in site administration # TODo: @@ -167,8 +168,8 @@ Feature: Check the kickstart course format features. Then I am on "Course 1" course homepage #Then I wait "5" seconds # Todo: - And I click kickstart template ".use-template[data-templatename=\"Custom sections\"]" - #Then I click on ".template-list .card-deck .card:nth-child(2) .card-footer a" "css_element" + #And I click kickstart template ".use-template[data-templatename=\"Custom sections\"]" + Then I click on ".template-list .card-deck .card:nth-child(2) .card-footer a" "css_element" And I click on "Import" "button" in the ".modal" "css_element" And I start watching to see if a new page loads Then I should see "Course 1"