devel_wizard-2.x-dev/templates/behat/taxonomy_vocabulary/devel_wizard.behat_access_create.feature.twig
templates/behat/taxonomy_vocabulary/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 "Structure"
And I follow "Taxonomy"
And I click on the "List terms" drop button action in the "taxonomy" table in the row where the "Vocabulary name" cell is "{{ label }}"
And I click on the "Add term" local action
Then I should see a "form[data-drupal-selector='taxonomy-term-{{ machine_name|replace({'_': '-'}) }}-form']" element
Scenario: {{ label }} - access.create - anonymous
Given I am an anonymous user
When I go to "/admin/structure/taxonomy/manage/{{ machine_name }}/overview"
Then the response status code should be 403
Scenario Outline: {{ label }} - access.create - registered
Given I am logged in as a user with the "<role>" role
When I go to "/admin/structure/taxonomy/manage/{{ machine_name }}/add"
Then the response status code should be <statusCode>
Examples:
{% include '@devel_wizard/behat/devel_wizard.behat.role.access.examples.twig' %}
