Merge branch 'MDL-68548' of https://github.com/Neosi/moodle
[moodle.git] / lib / editor / atto / tests / behat / customtoolbar.feature
1 @editor @editor_atto @atto
2 Feature: Atto editor with customised toolbar
3   In order to develop plugins that use Atto for specialised purposes
4   As a developer
5   I need to be able to configure Atto toolbar per-instance to include different plugins
7   Background:
8     # Get to the fixture page.
9     Given the following "courses" exist:
10       | fullname | shortname | format |
11       | Course 1 | C1        | topics |
12     And the following "activities" exist:
13       | activity   | name | intro                                                                                  | course | idnumber |
14       | label      | L1   | <a href="../lib/editor/atto/tests/fixtures/custom_toolbar_example.php">FixtureLink</a> | C1     | label1   |
15     When I log in as "admin"
16     And I am on "Course 1" course homepage
17     And I follow "FixtureLink"
19   @javascript
20   Scenario: Confirm that both editors have different toolbars but still function
21     Then ".atto_link_button" "css_element" should exist in the ".normaldiv" "css_element"
22     And ".atto_link_button" "css_element" should not exist in the ".specialdiv" "css_element"
23     And ".atto_bold_button" "css_element" should exist in the ".normaldiv" "css_element"
24     And ".atto_italic_button" "css_element" should exist in the ".normaldiv" "css_element"
25     And ".atto_bold_button" "css_element" should exist in the ".specialdiv" "css_element"
26     And ".atto_italic_button" "css_element" should exist in the ".specialdiv" "css_element"