Specifying a feature

Now, we are ready to define our first feature. In spec/cucumber/features/users/reigster/main.feature, add the following specification:

Feature: Register User  User visits the Registration Page, fills in the form, and submits  Background: Navigate to the Registration Page    When user navigates to /  Scenario: Password Too Short    When user types in "valid@ema.il" in the "#email" element    And user types in "shortpw" in the "#password" element    Then the "#register-button" element should have a "disabled" attribute

Get Building Enterprise JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.