Sha256: 2654cf3ed74d60bdeee1fa4959c863fd2c9ce54e7d635d9c2099b5b9735d1a43

Contents?: true

Size: 1.41 KB

Versions: 6

Compression:

Stored size: 1.41 KB

Contents

@dsl @javascript
Feature: Editing records in the list

  Background:
    Given I am logged in
    And a product with sku "sofa-12"
    And a configuration of:
      """
      class AbAdminProduct < AbAdmin::AbstractResource
        settings :list_edit => true
      end
      """
    And I am on the admin products page

  Scenario: Saving record with valid attributes
    Given I click "Edit"
    Then I should be on the admin products page
    And I fill in "Sku" with "new_sofa" within "#list"
    And I submit form
    When I should see "new_sofa"
    And I should not see "Save"

  Scenario: Saving record with invalid attributes
    Given I click "Edit"
    Then I should be on the admin products page
    And I fill in "Sku" with "" within "#list"
    And I submit form
    When I should see "Sku can't be blank"
    And I should see "Save"

  Scenario: Creating record with valid attributes
    Given I click "Create" within ".resource_actions"
    Then I should be on the admin products page
    And I fill in "Sku" with "new_sofa" within "#list"
    And I submit form
    When I should see "new_sofa"
    And I should not see "Save"

  Scenario: Creating record with invalid attributes
    Given I click "Create" within ".resource_actions"
    Then I should be on the admin products page
    And I fill in "Sku" with "" within "#list"
    And I submit form
    When I should see "Sku can't be blank"
    And I should see "Save"

Version data entries

6 entries across 6 versions & 1 rubygems

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