<commit_before>@us152 @search_for_deed_via_title_number_and_md_ref
Feature: Search for deed via title number and MD Refs
In order to establish if a deed exists:
The deed store must be capable of being searched using title number and MD reference,
so that another service can be provided with the deed ID.

Acceptance Criteria
- A search of the deed store can be made using a combination of title number and MD reference
- If a single deed is found the service must return the deed ID and status of the deed
- If multiple deeds are found the service must return the deed ID and status of each deed
- The service must state when no deed exists

Scenario: A search of the deed store can be performed when using valid Title Number & MD Reference
Given I create the deed with title_number "1234"
And I create the deed via the Deed API
When I search the deed store with title_number "1234"
Then the text "token" is displayed on the page
And the text "status" is displayed on the page

Scenario: Multiple deed ID's and Statuses are returned when searched using valid Title Number & MD Reference
Given I create the deed with title_number "DM101"
And I create the deed via the Deed API
And I create the deed with title_number "DM101"
And I create the deed via the Deed API
When I search the deed store with title_number "DM101"
Then the text "token" is displayed on the page
And the text "status" is displayed on the page
And the text "}, {" is displayed on the page

Scenario: Error is returned when search returns no deed
Given I have valid deed data with <1> borrowers
And I create the deed via the Deed API
When I search the deed store with title_number "99999"
Then the text "Not Found" is displayed on the page<commit_msg>Minor change to 3rd test. Removed unnecessary lines.<commit_after>@us152 @search_for_deed_via_title_number_and_md_ref
Feature: Search for deed via title number and MD Refs
In order to establish if a deed exists:
The deed store must be capable of being searched using title number and MD reference,
so that another service can be provided with the deed ID.

Acceptance Criteria
- A search of the deed store can be made using a combination of title number and MD reference
- If a single deed is found the service must return the deed ID and status of the deed
- If multiple deeds are found the service must return the deed ID and status of each deed
- The service must state when no deed exists

Scenario: A search of the deed store can be performed when using valid Title Number & MD Reference
Given I create the deed with title_number "1234"
And I create the deed via the Deed API
When I search the deed store with title_number "1234"
Then the text "token" is displayed on the page
And the text "status" is displayed on the page

Scenario: Multiple deed ID's and Statuses are returned when searched using valid Title Number & MD Reference
Given I create the deed with title_number "DM101"
And I create the deed via the Deed API
And I create the deed with title_number "DM101"
And I create the deed via the Deed API
When I search the deed store with title_number "DM101"
Then the text "token" is displayed on the page
And the text "status" is displayed on the page
And the text "}, {" is displayed on the page

Scenario: Error is returned when search returns no deed
Given I search the deed store with title_number "99999"
Then the text "Not Found" is displayed on the page
{'fraction_non_alphanumeric': 0.02831023296962548, 'fraction_numerical': 0.015334709525213801, 'mean_word_length': 4.4185303514377, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5044322', 'n_tokens_mistral': 941, 'n_tokens_neox': 843, 'n_words': 590}