Skip to content

Rewrite tests so that they will show intention better #21

Description

@gerich-home
  1. Setup test data in the test using Table syntax in Given
  2. Describe data criteria in When
  3. Describe match expectations in Then (matches / does not match, what data matches)

Example:

Given I have users:
| Id | Name   | Age  |
| 1  | Bob    | 10   |
| 2  | Peter  | 20   |
When I choose a user
And user's age is greater than 15 years
Then the data matches
And matched user's name is Peter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions