Skip to content

Commit

Permalink
tests for PO-832
Browse files Browse the repository at this point in the history
  • Loading branch information
CadeFaulkner committed Nov 1, 2024
1 parent cf3235c commit b9a833d
Showing 1 changed file with 55 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@Opal
Feature: PO-832 get draft accounts not submitted by

@PO-832 @cleanUpData
Scenario: Get draft accounts not submitted by - happy path
Given I am testing as the "opal-test@hmcts.net" user
When I create a draft account with the following details
| business_unit_id | 73 |
| account | draftAccounts/accountJson/adultAccount.json |
| account_type | Fine |
| account_status | |
| submitted_by | BUUID |
| timeline_data | |
Then The draft account response returns 201
And I store the created draft account ID

When I create a draft account with the following details
| business_unit_id | 73 |
| account | draftAccounts/accountJson/adultAccount.json |
| account_type | Fine |
| account_status | |
| submitted_by | BUUID_TWO |
| timeline_data | |
Then The draft account response returns 201
And I store the created draft account ID

When I get the draft accounts filtering on Not Submitted by "BUUID" then the response contains
| account_snapshot.submitted_by | BUUID_TWO |
And The draft account filtered response does not contain accounts submitted by "BUUID"

@PO-832 @cleanUpData
Scenario: Get draft accounts both not submitted by and submitted by parameters
Given I am testing as the "opal-test@hmcts.net" user
When I create a draft account with the following details
| business_unit_id | 73 |
| account | draftAccounts/accountJson/adultAccount.json |
| account_type | Fine |
| account_status | |
| submitted_by | BUUID |
| timeline_data | |
Then The draft account response returns 201
And I store the created draft account ID

When I create a draft account with the following details
| business_unit_id | 73 |
| account | draftAccounts/accountJson/adultAccount.json |
| account_type | Fine |
| account_status | |
| submitted_by | BUUID_TWO |
| timeline_data | |
Then The draft account response returns 201
And I store the created draft account ID

When I get the draft accounts filtering on Submitted by "BUUID" and Not Submitted by "BUUID_TWO"
Then The draft account response returns 400

0 comments on commit b9a833d

Please sign in to comment.