devel_wizard-2.x-dev/templates/behat/block_content_type/devel_wizard.behat_access_create.feature.twig

templates/behat/block_content_type/devel_wizard.behat_access_create.feature.twig
@api
@{{ machine_name }}
Feature: {{ label }} - access.create

  @javascript
  Scenario: {{ label }} - Navigate to the {{ label }} create page
    Given I am logged in as a user with the "Administrator" role
    And I am on the homepage
    When I click "Manage"
    And I follow "Content"
    And I click "Blocks" primary tab
    And I click on the "Add content block" local action
    And I click "{{ label }}" in the "Content" region
    Then the response status code should be 200
    And I should see a "form[data-drupal-selector='block-content-{{ machine_name|replace({'_': '-'}) }}-form']" element

  Scenario: {{ label }} - access.create - anonymous
    Given I am an anonymous user
    When I go to "/block/add/{{ machine_name }}"
    Then the response status code should be 403

  Scenario Outline: {{ label }} - registered user access check /block/add/{{ machine_name }}
    Given I am acting as an <role>
    When I go to "/block/add/{{ machine_name }}"
    Then the response status code should be <statusCode>
    Examples:
    {% include '@devel_wizard/behat/devel_wizard.behat.role.access.examples.twig' %}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc