From f1afcf6616221bd25788b41e311b92078a019fd3 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Sun, 23 Apr 2023 20:53:03 +0100 Subject: [PATCH] MDL-78006 course: test for adding activity in a new section --- .../topics/tests/behat/edit_delete_sections.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/course/format/topics/tests/behat/edit_delete_sections.feature b/course/format/topics/tests/behat/edit_delete_sections.feature index cc5efb21116..2bd0d0c8dc4 100644 --- a/course/format/topics/tests/behat/edit_delete_sections.feature +++ b/course/format/topics/tests/behat/edit_delete_sections.feature @@ -89,3 +89,11 @@ Feature: Sections can be edited and deleted in topics format Then I should see "Topic 6" in the "Topic 6" "section" And I should not see "Test choice name" in the "Topic 5" "section" And I should see "Test choice name" in the "Topic 6" "section" + + @javascript + Scenario: Add a topic and then add an activity in it + When I click on "Add topic" "link" in the "Topic 5" "section" + And I add a "Assignment" to section "6" and I fill the form with: + | Assignment name | Very new activity | + | Description | Test | + Then I should see "Very new activity" in the "Topic 6" "section"