Skip to content

Commit

Permalink
Rephrased Gherkin for Moodle 3.4 fixes eljulians#31.
Browse files Browse the repository at this point in the history
Also, the atto buttons are now the standard ones, with multilang2 additionally.
  • Loading branch information
lucaboesch committed Dec 22, 2017
1 parent 885c6ba commit b282b5c
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions tests/behat/multilang2.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,23 @@ Feature: Atto multilanguage list
@javascript
Scenario: Tag some text with multilang labels
Given I log in as "admin"
And the following config values are set as admin:
| toolbar | multilang2 = multilang2, table | editor_atto | # Needed table button, otherwise multilang list doesn't spread out...
And I am on homepage
And I follow "Profile" in the user menu
And I follow "Edit profile"
And I navigate to "Atto toolbar settings" node in "Site administration > Plugins > Text editors > Atto HTML editor"
And I set the field "Toolbar config" to multiline:
"""
style1 = title, bold, italic
list = unorderedlist, orderedlist
links = link
files = image, media, managefiles
style2 = underline, strike, subscript, superscript
align = align
indent = indent
insert = equation, charmap, table, clear
undo = undo
accessibility = accessibilitychecker, accessibilityhelper
other = html, multilang2
"""
And I click on "Save changes" "button"
And I open my profile in edit mode
And I set the field "Description" to "Multilingual content"
And I select the text in the "Description" Atto editor
When I click on "Multi-Language Content (v2)" "button"
Expand Down

0 comments on commit b282b5c

Please sign in to comment.