Sha256: 7000f3c97d50335f1b47a72d4864474b662921a986c0b504fc74450c24396e5d

Contents?: true

Size: 1.64 KB

Versions: 6

Compression:

Stored size: 1.64 KB

Contents

Feature: It supports naive serialization and resumption with the form-persistence npm package
  Scenario: It works with not-yet-uploaded file
    Given I am on the homepage
    When I fill in "Name" with "Jerry"
    And I attach the file "image.jpg" to "Image"
    Then I should see an upload progress bar at 100% within the "image.jpg" uploaded-file

    Given I am on the homepage
    Then I should see "Name" filled in with "Jerry"
    And I should see a preview of "image.jpg" within the "Image" bard-file

    When I press "Submit"
    Then I should see "Post created!"
    And I should see "image.jpg"
    And I should see the "image.jpg" image

  Scenario: It works with an already uploaded file
    Given I am on the homepage
    When I fill in "Name" with "Jerry"
    And I attach the file "image.jpg" to "Image"
    Then I should see an upload progress bar at 100% within the "image.jpg" uploaded-file
    And I should see a preview of "image.jpg" within the "Image" bard-file
    When I press "Submit"
    Then I should see "Post created!"

    When I follow "Edit"
    Then I should see "Name" filled in with "Jerry"
    And I should see an upload progress bar at 100% within the "image.jpg" uploaded-file
    And I should see a preview of "image.jpg" within the "Image" bard-file

    When I reload the page
    Then I should see "Name" filled in with "Jerry"
    And I should see an upload progress bar at 100% within the "image.jpg" uploaded-file
    And I should see a preview of "image.jpg" within the "Image" bard-file

    When I press "Submit"
    Then I should see "Post updated!"
    And I should see "image.jpg"
    And I should see the "image.jpg" image

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bard-file_field-0.1.5 dummy/features/form-persistence.feature
bard-file_field-0.1.4 dummy/features/form-persistence.feature
bard-file_field-0.1.3 dummy/features/form-persistence.feature
bard-file_field-0.1.2 dummy/features/form-persistence.feature
bard-file_field-0.1.1 dummy/features/form-persistence.feature
bard-file_field-0.1.0 dummy/features/form-persistence.feature