Skip to content

Instantly share code, notes, and snippets.

@samnursa
Last active August 5, 2022 07:12
Show Gist options
  • Save samnursa/9d35bb919a3d8cd0d661e9bce6b93ef4 to your computer and use it in GitHub Desktop.
Save samnursa/9d35bb919a3d8cd0d661e9bce6b93ef4 to your computer and use it in GitHub Desktop.
Feature: Login
Perform login on email and password are inputted
Rule: email must be in email format and password should be more than 6 contains characters
Scenario Outline: Input email and password in wrong format
Given The app started
When I input email <email>
And I input password <password>
Then I should see error on the <view>
Examples:
| email | password | view |
| test | halloworld | email |
| test@test.com | 1234 | password |
Scenario Outline: Input email and password in correct format
Given The app started
When I input email <email>
And I input password <password>
Then I should see no error on the screen
Examples:
| email | password |
| espresso@spoon.com | bananacake |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment