From b08f86b25812893f18df87594dbf4720c66cd435 Mon Sep 17 00:00:00 2001 From: Angelia Dela Cruz Date: Fri, 7 Oct 2022 10:34:24 +0800 Subject: [PATCH] MDL-75912 behat: Wiki Behat tests now use generators Replace steps that manually add Wiki instances via the UI and use Behat generators. This improves the speed of the Behat test runs. --- admin/tool/usertours/tests/behat/tour_filter.feature | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/admin/tool/usertours/tests/behat/tour_filter.feature b/admin/tool/usertours/tests/behat/tour_filter.feature index 0fe72f41f80..8fd94d7bb48 100644 --- a/admin/tool/usertours/tests/behat/tour_filter.feature +++ b/admin/tool/usertours/tests/behat/tour_filter.feature @@ -152,14 +152,11 @@ Feature: Apply tour filters to a tour | fullname | shortname | format | enablecompletion | | Course 1 | C1 | topics | 1 | | Course 2 | C2 | topics | 1 | + And the following "activities" exist: + | activity | course | name | firstpagetitle | wikimode | + | wiki | C1 | Test wiki name | First page | collaborative | And I log in as "admin" - And I am on "Course 1" course homepage with editing mode on - And I add a "Wiki" to section "1" and I fill the form with: - | Wiki name | Test wiki name | - | Description | Test wiki description | - | First page name | First page | - | Wiki mode | Collaborative wiki | - And I am on "Course 2" course homepage + And I am on "Course 2" course homepage with editing mode on And I add a "Forum" to section "1" and I fill the form with: | Forum name | Test forum name | | Forum type | Standard forum for general use |