Начинаем автоматизировать проект. Много дебатов с коллегами, поэтому решила вынести на всеобщее обсуждение.
Feature: As a user I want to sent request with data of my car So backoffice user can call me** *Scenario: Send sell request successfully* Given user goes to Sell car page When user fills 'phone' with '123456' And user clicks Submit Then Thanks page should be opened *Scenario: Send sell request with errors* Given user goes to Sell car page And user clicks Submit And error message for 'phone' is visible When user fills 'phone' with '77777777' And user clicks Submit Then Thanks page should be opened And error message for 'phone' should be not visible *Scenario: See sent request in backend* Given user goes to Sell car page When user fills 'phone' with '0000000000' And user clicks Submit And backend user is logged in And user goes to Backend leads page Then user should see '0000000000' in 'phone'
Честно говоря приветствуется любая критика. Особенно волнуют следующие вопросы:
1. Первое или третье лицо использовать в сценариях?
2. Можно ли смешивать бекенд с фронтендом?
Буду благодарна за любые ресурсы, которые помогут мне писать сценарии мечты, а также за ответы.