forked from mainfraame/cucumber-jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscenarioOutlineNested.feature
27 lines (25 loc) · 1.17 KB
/
scenarioOutlineNested.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
Feature: Sign Up - Scenario Outline [Nested]
Scenario Outline: Submitting <prefix> Extra Emails
Given the firstName text input value is $user.firstName
And the lastName text input value is $user.lastName
And the email text input value is $user.email
And the password text input value is $user.password
And the extraEmails checkbox input is <extraEmails>
When the submit button is clicked
Then POST /api/sign-up is called with the request body:
"""
{
"firstName": "<firstName>",
"lastName": "$user.lastName",
"email": "$user.email",
"password": "$user.password",
"extraEmails": <extraEmailsValue>,
"date": "2019-12-01T15:00:00.000Z"
}
"""
And the successAlert is <successAlert>
And the showExtraEmailsAlert is <showExtraEmailsAlert>
Examples:
| prefix | firstName | extraEmails | extraEmailsValue | successAlert | showExtraEmailsAlert |
| With | $user.firstName | not checked | false | visible | not visible |
| Without | $user.firstName | checked | true | visible | visible |