Commit a05a8e06 authored by Lars Olesen's avatar Lars Olesen Committed by Matt Glaman

Issue #2647754 by mglaman: Add tests for admin toolbar (#187)

Issue #2647754 by mglaman, lsolesen : Add tests for admin toolbar
parent 31dc20fa
behat.yml
composer.lock
composer.phar
bin
vendor
default:
suites:
default:
paths:
features: 'features'
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
extensions:
Behat\MinkExtension:
goutte: ~
selenium2: ~
files_path: ../../
Drupal\DrupalExtension:
blackbox: ~
region_map:
Tabs: ".tabs.primary"
Navbar: "#toolbar"
imports:
- behat.common.yml
default:
suites:
default:
paths:
features: 'features'
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
extensions:
Behat\MinkExtension:
goutte: ~
selenium2: ~
base_url: http://${drupal.uri}
files_path: ../../
Drupal\DrupalExtension:
blackbox: ~
drush:
root: ${drush.root}
region_map:
Tabs: ".tabs.primary"
imports:
- behat.common.yml
default:
suites:
default:
paths:
features: 'features'
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
extensions:
Behat\MinkExtension:
goutte: ~
selenium2: ~
base_url: http://127.0.0.1:8888
files_path: ../../
Drupal\DrupalExtension:
blackbox: ~
drush:
alias: self
# You need to set drupal - drupal_root with BEHAT_PARAMS
# export BEHAT_PARAMS="extensions[Drupal\\DrupalExtension\\Extension][drupal][drupal_root]=$DISTRO/drupal"
region_map:
Tabs: ".tabs.primary"
This diff is collapsed.
Feature: Administrators can access management areas
As a store manager
I can access the administrative toolbar
So that I can manage the store
@api @javascript
Scenario: I can access the administrative toolbar
Given I am logged in as a user with the "administrator" role
When I am on the homepage
Then I should see the link "Products" in the "Navbar" region
Then I should see the link "Orders" in the "Navbar" region
Then I should see the link "Content" in the "Navbar" region
Then I should see the link "Store settings" in the "Navbar" region
Then I should see the link "Site settings" in the "Navbar" region
Then I should see the link "Help" in the "Navbar" region
Then I should see the link "Log out" in the "Navbar" region
Then I should see the link "Manage orders" in the "Navbar" region
Then I should see the link "Manage products" in the "Navbar" region
Then I should see the link "Categories" in the "Navbar" region
Then I should see the link "Shipping" in the "Navbar" region
Then I should see the link "Taxes" in the "Navbar" region
Then I should see the link "Discounts" in the "Navbar" region
Then I should see the link "Payment methods" in the "Navbar" region
Then I should see the link "Currency settings" in the "Navbar" region
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment