Sha256: 32bd76db7802eb79fbb5909a22c6e1dbe345c1ceab25e37f9b2c95f6fa00a1cb

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

Feature:  Working with tables

  Background:
    Given we are observing the people table

  Scenario: Selecting a row by index
    When we select the table row with index "1"
    Then the row with index "1" should be selected

  Scenario: Selecting a row by value
    When we select the table row with the value "Anna Doe"
    Then the row with index "1" should be selected

  Scenario: Selecting a row by matching cell information
    When we select the table row with the following information:
      | name     | date_of_birth |
      | Anna Doe | 3/4/1975      |
    Then the row with index "1" should be selected

  Scenario: Selecting a row from a child item
    When we select the "1"th table row
    Then the row with index "1" should be selected

  Scenario: Rows have cells
    Then the row with index "0" should look like the following:
      | Name     | Date of Birth | State |
      | John Doe | 12/15/1967    | FL    |

  Scenario: Retrieving the row values
    Then the table row information should look like the following:
      | text     | row |
      | John Doe | 0   |
      | Anna Doe | 1   |

  Scenario: Retrieving the headers
    Then the table headers are "Name, Date of birth, State"

  Scenario: Retrieving a row value by its header
    Then the "date_of_birth" for the row at index "1" is "3/4/1975"

  Scenario: Working with lots of records counts
    When there are a lot of records in a table
    Then the table count responds in a reasonable amount of time

  Scenario: Working with a row when there are a lot of records
    When there are a lot of records in a table
    Then accessing the values in row "12" should be snappy

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mohawk-0.0.5 features/table.feature