generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf3235c
commit b9a833d
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
...countCreation/draftAccounts/getDraftAccountsMulti/PO-832_getDraftAccountsNotSubBy.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |