Scenario Outline: I enter a script tag into a text input
When I type "<phrase>" into the text field
Examples:
| phrase |
| <script>alert('fail');</script> |
Expected outcome: JSON output should not contain raw JavaScript
Actual outcome: See JSON snippet below
...
{
"keyword": "When ",
"line": 183,
"name": "I type \"<script>alert('fail');</script>\" into the destination search field",
"id": "I type \"<script>alert('fail');</script>\" into the text field183",
"tags": [],
"uri": "/spec/functional/features/MyFeature.feature",
"result": {
"status": "passed",
"duration": 185000000
},
"embeddings": []
},
...
Example feature:
Expected outcome: JSON output should not contain raw JavaScript Actual outcome: See JSON snippet below