We do not have tests for the admin toolbar. When updating to latest Discount alpha the tests failed because the route changed. Fixing the route made the test pass, but did not catch the regression thast caused it to disappear in the toolbar menu.

Comments

mglaman created an issue. See original summary.

lsolesen’s picture

@mglaman How do you propose the test to be?

mglaman’s picture

Here's what I did for MojoCart

Feature: Store Managers 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 "store manager" role
    When I am on the homepage
      Then I should see the link "Store" in the "Navbar" region
        And I click "Store" in the "Navbar" region
    Then I should see the link "Reports" in the "Navbar" region
    Then I should see the link "Coupons" in the "Navbar" region
    Then I should see the link "Discounts" in the "Navbar" region
    Then I should see the link "Orders" in the "Navbar" region
    Then I should see the link "Products" in the "Navbar" region
    Then I should see the link "Configuration" in the "Navbar" region

http://cgit.drupalcode.org/mojocart/tree/tests/behat/features/store_mana...

lsolesen’s picture

Status: Active » Needs review

  • mglaman committed a05a8e0 on 7.x-2.x authored by lsolesen
    Issue #2647754 by mglaman: Add tests for admin toolbar (#187)
    
    Issue #...
mglaman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.