Defining the happy scenario

Let's begin defining our happy scenario by writing the feature file:

Scenario: Valid Input  Tests that the 'Register' button is enabled when valid values are provided, and that upon successful registration, the UI display will display the message "You've been registered successfully"  When user types in a valid email in the "#email" element  And user types in a valid password in the "#password" element  Then the "#register-button" element should not have a "disabled" attribute  When user clicks on the "#register-button" element  Then the "#registration-success" element should appear within 2000 milliseconds

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.