From f9e3e0109fa296fa3a22916ff116e93bb39a3ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Fri, 22 Dec 2017 10:27:28 +0100 Subject: [PATCH] Rephrased Gherkin for Moodle 3.4 fixes #31. Also, the atto buttons are now the standard ones, with multilang2 additionally. --- tests/behat/multilang2.feature | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/tests/behat/multilang2.feature b/tests/behat/multilang2.feature index 1b061cf..85431e1 100644 --- a/tests/behat/multilang2.feature +++ b/tests/behat/multilang2.feature @@ -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"