Skip to content

Commit

Permalink
tests for 183 (#279)
Browse files Browse the repository at this point in the history
* tests for 183

* spelling mistake in test name
  • Loading branch information
CadeFaulkner authored Mar 21, 2024
1 parent 789e4ab commit bbe2c3f
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@PO-183 @Opal
Feature: tests for authorisation on the defendant account search endpoint
Scenario: authorised user can make the request
Given I am testing as the "[email protected]" user
When I make a call to the defendant search API using the parameters
| forename | Smart |
| surname | John |
| initials | D |
| dayOfMonth | 23 |
| monthOfYear | 11 |
| year | 1999 |
| addressLine | 10 Brooks Lake |
Then there is one result returned matching
| name | Mr Smart D John |
| dateOfBirth | 1999-11-23 |
| addressLine1 | 10 Brooks Lake |

Scenario: unauthorised user cannot make the request
Given I am testing as the "[email protected]" user
When I make a call to the defendant search API using the parameters
| forename | Smart |
| surname | John |
| initials | D |
| dayOfMonth | 23 |
| monthOfYear | 11 |
| year | 1999 |
| addressLine | 10 Brooks Lake |
Then the add notes request is forbidden

0 comments on commit bbe2c3f

Please sign in to comment.