@admin @search-for-buyers
Feature: Find a buyer

Scenario Outline: Correct users can search for buyers by brief id
  Given I am logged in as the existing <role> user
  And I click the 'Find a buyer by opportunity ID' link
  When I enter '18723' in the 'Find a buyer by opportunity ID' field
  And I click the 'Search' button
  Then I am on the 'Find a buyer' page
  And I see the 'User' summary table filled with:
    | Test user | 18723@user.marketplace.team |

  Examples:
    | role                    |
    | admin                   |
    | admin-ccs-category      |

Scenario Outline: Correct users cannot search for buyers by brief id
  Given I am logged in as the existing <role> user
  Then I don't see the 'Find a buyer by opportunity ID' link
  When I visit the /admin/buyers page
  Then I am on the 'You don’t have permission to perform this action' page

  Examples:
    | role                      |
    | admin-framework-manager   |
    | admin-ccs-sourcing        |
    | admin-manager             |
    | admin-ccs-data-controller |

@admin @search-for-buyers
Feature: Find a buyer

Scenario Outline: Correct users can search for buyers by brief id
  Given I am logged in as the existing <role> user
  And I click the 'Find a buyer by opportunity ID' link
  When I enter '18723' in the 'Find a buyer by opportunity ID' field
  And I click the 'Search' button
  Then I am on the 'Find a buyer' page
  And I see the 'User' summary table filled with:
    | Test user | 18723@user.marketplace.team |

  Examples:
    | role                    |
    | admin                   |
    | admin-ccs-category      |

Delete feature which is unit tested
Delete feature which is unit tested

This feature is already unit tested in https://github.com/alphagov/digitalmarketplace-admin-frontend/blob/527eca037b6ba3cbbe50e2a8899c31e2157fe746/tests/app/main/views/test_buyers.py#L20-L31 therefore we can safely remove the feature test