Creating a Behat feature based on a Jira ticket
In the previous chapter, we learned how to create a simple Behat feature. In this section, we will create a new Behat feature that will represent the TOYC-2
Jira ticket we created earlier, in Chapter 2, Understanding and Organizing the Business Requirements of Our Project. This will then help drive the development of the integration and unit tests that will help us build the actual solution code. Let’s get started with the steps.
Create a Behat feature file, name it inventory_clerk_registration.feature
, and save it with the following feature content:
codebase/behat/features/inventory_clerk_registration.feature
Feature: Inventory Clerk Registration In order to access the inventory system As an Inventory Clerk I need to be able to create a clerk account Scenario: Access Registration Page Given I am in the home "/" path ...