|
| 1 | +@editor @editor_tiny @tiny @tiny_multilang2 @javascript |
| 2 | +Feature: Test the tiny editor multilang plugin with the fallback other feature enabled or disabled. |
| 3 | + |
| 4 | + Background: I login as admin and add a text to the description with two paragraphs. |
| 5 | + Given the following config values are set as admin: |
| 6 | + | requiremultilang2 | 0 | tiny_multilang2 | |
| 7 | + | highlight | 1 | tiny_multilang2 | |
| 8 | + | showfallbackother | 1 | tiny_multilang2 | |
| 9 | + And the following "language packs" exist: |
| 10 | + | language | |
| 11 | + | de | |
| 12 | + And the "multilang" filter is "on" |
| 13 | + And the "multilang" filter applies to "content" |
| 14 | + And the "multilang2" filter is "on" |
| 15 | + And the "multilang2" filter applies to "content" |
| 16 | + And I log in as "admin" |
| 17 | + |
| 18 | + Scenario: Toggle the showfallbackother setting. |
| 19 | + Given I log in as "admin" |
| 20 | + And I open my profile in edit mode |
| 21 | + And I wait until the page is ready |
| 22 | + And I click on the "Format > Language" submenu item for the "Description" TinyMCE editor |
| 23 | + Then I should see "English (en)" |
| 24 | + And I should see "Deutsch (de)" |
| 25 | + And I should see "Remove all lang tags" |
| 26 | + And I should see "Fallback (other)" |
| 27 | + When I navigate to "Plugins > Text editors > Multi-Language Content (v2)" in site administration |
| 28 | + And I set the field "s_tiny_multilang2_showfallbackother" to "0" |
| 29 | + And I click on "Save changes" "button" |
| 30 | + And I open my profile in edit mode |
| 31 | + And I wait until the page is ready |
| 32 | + And I click on the "Format > Language" submenu item for the "Description" TinyMCE editor |
| 33 | + Then I should see "English (en)" |
| 34 | + And I should see "Deutsch (de)" |
| 35 | + And I should see "Remove all lang tags" |
| 36 | + And I should not see "Fallback (other)" |
0 commit comments