@not-production @functional-test
Feature: Create buyer account. WIP-The flow to get to the creation page is as yet not nailed down. This test starts directly on the buyer creation page itself rather than navigating to it as a user would on the frontend app

Scenario: User steps through buyer account creation process
  Given I navigate directly to the page '/buyers/create'
  When I am on the 'Create a buyer account' page
  And I enter 'test.buyer.email@test.gov.uk' in the 'email_address' field
  And I click 'Create account'
  Then I am taken to the 'Activate your account' page

@not-production @functional-test @buyer-creation
Feature: Create buyer account. We're assuming a user journey where someone tries to find a specialist, eventually hits the login page, and then clicks 'Create a buyer account' from the login page

Scenario: User steps through buyer account creation process
  Given I am on the 'Digital Marketplace' landing page
  When I click the 'Find an individual specialist' link
  Then I am taken to the buyers 'Find an individual specialist' page

  When I click the 'Create requirement' button
  Then I am taken to the 'Log in to the Digital Marketplace' page

  When I click the 'Create a buyer account' link
  Then I am on the 'Create a buyer account' page

  And I enter 'test.buyer.email@test.gov.uk' in the 'email_address' field
  And I click 'Create account'
  Then I am taken to the 'Activate your account' page

Fix buyer account creation scenario
Fix buyer account creation scenario

The previous buyer account creation scenario started by navigating
directly to the create page because there was no other way to get
to that page at the time that the test was written.

Now that we have a viable user flow, we can update the tests to
reflect what a user might actually do: ie, create an account as
part of creating a brief.
