Можно ли повторно использовать функцию как «Данную» для другой функции?

Можно ли повторно использовать функцию в качестве & quot; предоставленной & quot; для другой функции?

Или я пытаюсь сделать что-то, чего не должен делать

в основном мои функции выглядят так:

Scenario: Creating a basic account with valid details (happy path)
  Given I am on the "signup" page
  And I enter all the right details #this is shortened of about 20 steps for your reading ease
  When I press the button labelled "Sign up"
  Then I should see the text "Thanks for signing up"
  And I should have an email from "[email protected]" titled "Confirm your account Michael"
  And the database should contain a record for the user marked as unconfirmed

Scenario: Confirming account via email
  Given I have created a basic account
  When I open the confirmation email and visit the url to confirm the account
  Then I should be logged in
  And the database should contain a record for the user makred as confirmed

Я очищаю свою БД после каждой функции, так как все они должны быть в состоянии запускаться индивидуально ...

Я поступаю об этом неправильно?

Спасибо

Ответы на вопрос(2)

Ваш ответ на вопрос