Sha256: 84ff52a7421bd65fe4ae4fb9367aaba250c1bf8ca4fd534525e15f43a473bf47

Contents?: true

Size: 818 Bytes

Versions: 2

Compression:

Stored size: 818 Bytes

Contents

@custom_permissions
Feature: Admin Permissions

  Background: Admin is restricted from accessing orders
    Given I have an admin account of "admin@person.com/password"
    Given I do not have permission to access orders
    And I go to the sign in page
    And I sign in as "admin@person.com/password"

  Scenario: Admin tries to list the orders
    When I go to the admin orders page
    Then I should see "Authorization Failure"

  Scenario: Admin tries to edit the order
    Given an order exists with a number of "R123"
    When I go to the edit admin order page for "R123"
    Then I should see "Authorization Failure"

  Scenario: Admin tries to show the order
    Given an order exists with a number of "R123"
    When I go to the show admin order page for "R123"
    Then I should see "Authorization Failure"

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
MyCommerceapi-1.0.0 auth/features/admin_permissions.feature
MyCommerce-0.0.3 auth/features/admin_permissions.feature