From 2b6287b74437d37c284ab658b60e43dce05e39e2 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 25 Feb 2013 12:50:21 +0800 Subject: [PATCH] MDL-38178 behat: New tests for fieldsets expansion --- .../behat/tests/behat/manipulate_forms.feature | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/admin/tool/behat/tests/behat/manipulate_forms.feature b/admin/tool/behat/tests/behat/manipulate_forms.feature index 9db074065d3..58780987ce3 100644 --- a/admin/tool/behat/tests/behat/manipulate_forms.feature +++ b/admin/tool/behat/tests/behat/manipulate_forms.feature @@ -18,3 +18,17 @@ Feature: Forms manipulation And I uncheck "Unmask" And the "Unmask" checkbox should not be checked And I press "Update profile" + + @javascript + Scenario: Expand all fieldsets and advanced elements + Given the following "courses" exists: + | fullname | shortname | category | + | Course 1 | C1 | 0 | + And I log in as "admin" + And I follow "Course 1" + And I follow "Edit settings" + When I expand all fieldsets + Then I should see "Group mode" + And I should see "Your word for 'Course creator'" + And I should not see "Show more..." + And I should see "Show less..."