Sha256: ec1cc9475571b04862a70c4471124ca66b2258bca7e423ce237711e1ab6f8280

Contents?: true

Size: 803 Bytes

Versions: 7

Compression:

Stored size: 803 Bytes

Contents

@dsl @javascript
Feature: Admin comments
  
  Background: 
    Given I am logged in
    And 1 product exists

  Scenario: Adding a comment
    Given a configuration of:
      """
      class AbAdminProduct < AbAdmin::AbstractResource
        settings :comments => true
      end
      """
    And I am on the edit admin product page
    When I fill in "admin_comment_body" with "Hello"
    And I press "Comment"
    Then I should see "Hello" comment with author

  Scenario: Deleting a comment
    Given a configuration of:
      """
      class AbAdminProduct < AbAdmin::AbstractResource
        settings :comments => true
      end
      """
    And comment "Hello" exists
    And I am on the edit admin product page
    When I click "Remove" within "#admin_comments"
    Then I should not see "Hello"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 features/dsl/admin_comments.feature
ab_admin-0.2.2 features/dsl/admin_comments.feature
ab_admin-0.2.1 features/dsl/admin_comments.feature
ab_admin-0.2.0 features/dsl/admin_comments.feature
ab_admin-0.1.2 features/dsl/admin_comments.feature
ab_admin-0.1.1 features/dsl/admin_comments.feature
ab_admin-0.1.0 features/dsl/admin_comments.feature