Writing tests

This means starting with composing the Cucumber features file.

Feature: Login User  User visits the Login Page, fills in the form, and submits  Background: Navigate to the Login Page    When user navigates to /login  Scenario Outline: Invalid Input    Tests that the 'Login' button is disabled when either input elements contain invalid values    When user types in "<email>" in the "#email" element    And user types in "<password>" in the "#password" element    Then the "#login-button" element should have a "disabled" attribute  Examples:  | testCase | email | password |  | Both Invalid | invalid-email | shortpw |  | Invalid Email | invalid-email | abcd1234qwerty |  | Short Password | valid@ema.il | shortpw |  Scenario: Valid Input Tests that the 'Login' ...

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.