Зачем оставлять что-либо открытым для предложений? Допущение допущений, сделанных разработчиками, по своей сути рискованно с точки зрения создания переделок.
То, как каждое поле формы ведет себя в различных обстоятельствах (создание, отображение, редактирование, персонализация), явно является критерием приемлемости.
Если вы спрячете его в модульном тесте, вы отключите его от действующей документации.
Вам действительно не нужны модульные тесты, если вы действительно покупаете BDD.
Feature: Edit staff personal
Scenario Outline: Form validation
Given I am editing a staff personal details
And the form contains a "<Mandatory?>" field with a label "<Label>"
And text fields have a input length of between "<Min Length>" and "<Max Length>"
And select fields have these "<Options>"
When I submit the form by clicking the save button
Then an error displays if validation fails
But commits my changes if validation is successful and returns the form back to display mode
Examples:
| Label | Mandatory? | Type | Min length | Max length | Options
| Title | true | select | 0 | 0 | Mr, Mrs, Miss, Ms, Dr, Prof |
| Surname | true | text | 2 | 50 | null |
| Forename | true | text | 2 | 50 | null |
| Known as / Other Surname | false | text | 2 | 50 | null |
| Known as forename | false | text | 2 | 50 | null |
| Date of birth | true | date-picker | 0 | 0 | null |
| NI number | true | ni-number | 0 | 0 | null |
person
jenson-button-event
schedule
21.01.2020