AgileVentures / MetPlus_tracker

Git Repository for the Waffle issue in MetPlus project
2 stars 4 forks source link

Only authorised people can see the Admin in menu #725

Open faithngetich opened 5 years ago

faithngetich commented 5 years ago

Currently, we have no cucumber tests that check that all unauthorized people should not see the Admin menu.

Expected behavior: Create a feature file to check that unauthorized people cannot see the Admin menu.


Scenario: non-admin does not see 'admin' in menu
    Given I am on the home page
    And I login as "jane@metplus.org" with password "qwerty123"
    Then I should see "Signed in successfully."
    And I should not see "Admin"