forked from mainfraame/cucumber-jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscenarioOutline.feature
27 lines (25 loc) · 1.06 KB
/
scenarioOutline.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: Submitting <prefix> Extra Emails
Given the firstName text input value is $firstName
And the lastName text input value is $lastName
And the email text input value is $email
And the password text input value is $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": "$lastName",
"email": "$email",
"password": "$password",
"extraEmails": <extraEmailsValue>,
"date": "2019-12-01T15:00:00.000Z"
}
"""
And the successAlert is <successAlert>
And the showExtraEmailsAlert is <showExtraEmailsAlert>
Examples:
| prefix | extraEmails | extraEmailsValue | successAlert | showExtraEmailsAlert |
| With | not checked | false | visible | not visible |
| Without | checked | true | visible | visible |