-
Notifications
You must be signed in to change notification settings - Fork 0
/
Signup.feature
60 lines (55 loc) · 3 KB
/
Signup.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Feature: Sign Up page
Scenario: App displays the Sign up page components
Given the app displays the "Sign Up" page
Then the app should display the "Title" label
And the app should display the "Name" field
And the app should display the "Body" label
And the app should display the "Email" field
And the app should display the "Password" field
And the app should display the "Get Started" button
And the app should display the "Single Sign-on" section
And the app should display the "Free License" section
And the app should display the "Newsletter" checkbox
And the app should display the "Legal" checkbox
Scenario: App displays all alert messages
Given the app displays the "Sign Up" page
When the user clicks on the "Get Started" button
Then the app should display the "Name Empty Error" label
And the app should display the "Email Empty Error" label
And the app should display the "Password Empty Error" label
And the app should display the "Legal Empty Error" label
Scenario Outline: App does not display error with valid values
Given the app displays the "Sign Up" page
When the user types "<value>" on the "<field>" field
And the user clicks on the "Get Started" button
Then the app should display the "<error_message1>" label
And the app should display the "<error_message2>" label
And the app should not display the "<error_message3>" label
Examples:
| value | field | error_message1 | error_message2 | error_message3 |
| John Doe | Name | Email Empty Error | Password Empty Error | Name Empty Error |
| [email protected] | Email | Name Empty Error | Password Empty Error | Email Empty Error |
| 123456 | Password | Name Empty Error | Email Empty Error | Password Empty Error |
Scenario Outline: Sign up given the user has informed an email with incorrect format
Given the app displays the "Sign Up" page
When the user types "<value>" on the "Email" field
And the user clicks on the "Get Started" button
Then the app should display the "Email Invalid Error" label
Examples:
| value |
| a.a@a |
| a.a |
Scenario Outline: Password field has minimum character length
Given the app displays the "Sign Up" page
When the user types "<value>" on the "Password" field
And the user clicks on the "Get Started" button
Then the app should display the "Password Minimum Characters" label
And the app should display the "Password Minimum Characters" label text
"""
Please use 8+ characters for secure password.
"""
Examples:
| value |
| 1234567 |
| 123456 |
| 1 |