Sha256: be6de894a8e8d76753fef1d41c7ef78fdf428af88566fb82c6b4fed174b7307d

Contents?: true

Size: 797 Bytes

Versions: 7

Compression:

Stored size: 797 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.3.6 features/dsl/admin_comments.feature
ab_admin-0.3.5 features/dsl/admin_comments.feature
ab_admin-0.3.4 features/dsl/admin_comments.feature
ab_admin-0.3.3 features/dsl/admin_comments.feature
ab_admin-0.3.2 features/dsl/admin_comments.feature
ab_admin-0.3.1 features/dsl/admin_comments.feature
ab_admin-0.3.0 features/dsl/admin_comments.feature