From 3e92c41acf889ef217a9111b3eb77c25d89abc50 Mon Sep 17 00:00:00 2001 From: Mark Whitaker Date: Thu, 19 Dec 2024 17:23:22 +0000 Subject: [PATCH] Update VCR cassettes Requests to the API have changed as Pagy indexes pages from 1, not 0 used by Kaminari. This means the `pages` parameter in API calls to the `caseworker/claims` endpoint now use 1 instead of 0, and VCR cassettes need to be updated to reflect this. This also updates a feature test which had become inaccurate to a change of onscreen wording as a result of the use of the @pagy_info helper method to display pagination data. --- features/re_allocation.feature | 4 ++-- vcr/cassettes/features/case_workers/admin/allocation.yml | 6 +++--- vcr/cassettes/features/case_workers/admin/reallocation.yml | 6 +++--- vcr/cassettes/features/case_workers/claims/authorise.yml | 4 ++-- .../features/case_workers/claims/injection_error.yml | 6 +++--- vcr/cassettes/features/case_workers/claims/messaging.yml | 4 ++-- vcr/cassettes/features/case_workers/claims/refuse.yml | 6 +++--- vcr/cassettes/features/case_workers/claims/reject.yml | 4 ++-- vcr/cassettes/features/provider_management.yml | 4 ++-- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/features/re_allocation.feature b/features/re_allocation.feature index fba3f42e9e..6a6f229947 100644 --- a/features/re_allocation.feature +++ b/features/re_allocation.feature @@ -14,7 +14,7 @@ Feature: Case worker admin re-allocates claims When I click the link 'Re-allocation' Then I should see a page title "View the re-allocation queue" - And I should see 'Number of claims: 1' + And I should see 'Displaying 1 claim' When I fill in 'Search' with 'does not exist' And I click the button 'Search claims' @@ -28,7 +28,7 @@ Feature: Case worker admin re-allocates claims When I click the link 'Re-allocation' Then I should see a page title "View the re-allocation queue" - And I should see 'Number of claims: 1' + And I should see 'Displaying 1 claim' And the page should be accessible skipping 'aria-allowed-attr' When I select case worker "Kanesha Torphy" diff --git a/vcr/cassettes/features/case_workers/admin/allocation.yml b/vcr/cassettes/features/case_workers/admin/allocation.yml index d32a04d544..4efadab214 100644 --- a/vcr/cassettes/features/case_workers/admin/allocation.yml +++ b/vcr/cassettes/features/case_workers/admin/allocation.yml @@ -44,7 +44,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:38:03 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=2c6a4c3a-e1bc-44a5-82b5-bfcf2fe782e3&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search&sorting=last_submitted_at&status=unallocated&value_band_id=0 + uri: http://localhost:3001/api/case_workers/claims?api_key=2c6a4c3a-e1bc-44a5-82b5-bfcf2fe782e3&direction=asc&filter=all&limit=25&page=1&scheme=agfs&search&sorting=last_submitted_at&status=unallocated&value_band_id=0 body: encoding: US-ASCII string: '' @@ -136,7 +136,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:38:03 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=2c6a4c3a-e1bc-44a5-82b5-bfcf2fe782e3&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search&sorting=last_submitted_at&status=unallocated&value_band_id=0 + uri: http://localhost:3001/api/case_workers/claims?api_key=2c6a4c3a-e1bc-44a5-82b5-bfcf2fe782e3&direction=asc&filter=all&limit=25&page=1&scheme=agfs&search&sorting=last_submitted_at&status=unallocated&value_band_id=0 body: encoding: US-ASCII string: '' @@ -186,7 +186,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:38:03 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=2fa6b8ba-72bd-4482-9230-ce9077bb0a48&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=2fa6b8ba-72bd-4482-9230-ce9077bb0a48&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' diff --git a/vcr/cassettes/features/case_workers/admin/reallocation.yml b/vcr/cassettes/features/case_workers/admin/reallocation.yml index 8cc2fe8d2d..10b53f9758 100644 --- a/vcr/cassettes/features/case_workers/admin/reallocation.yml +++ b/vcr/cassettes/features/case_workers/admin/reallocation.yml @@ -44,7 +44,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:39:49 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search&sorting=last_submitted_at&status=unallocated&value_band_id=0 + uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=1&scheme=agfs&search&sorting=last_submitted_at&status=unallocated&value_band_id=0 body: encoding: US-ASCII string: '' @@ -128,7 +128,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:39:50 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search&sorting=last_submitted_at&status=allocated&value_band_id=0 + uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=1&scheme=agfs&search&sorting=last_submitted_at&status=allocated&value_band_id=0 body: encoding: US-ASCII string: '' @@ -213,7 +213,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:39:50 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=0&scheme=agfs&search=does%20not%20exist&sorting=last_submitted_at&status=allocated&value_band_id=0 + uri: http://localhost:3001/api/case_workers/claims?api_key=0b8bc28b-460a-4e96-a023-100d0bd010ee&direction=asc&filter=all&limit=25&page=1&scheme=agfs&search=does%20not%20exist&sorting=last_submitted_at&status=allocated&value_band_id=0 body: encoding: US-ASCII string: '' diff --git a/vcr/cassettes/features/case_workers/claims/authorise.yml b/vcr/cassettes/features/case_workers/claims/authorise.yml index 3c9bcb7c48..05183e8850 100644 --- a/vcr/cassettes/features/case_workers/claims/authorise.yml +++ b/vcr/cassettes/features/case_workers/claims/authorise.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=790d0ef2-70b5-4d4f-ae21-585d870d282e&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=790d0ef2-70b5-4d4f-ae21-585d870d282e&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -45,7 +45,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:38:56 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=790d0ef2-70b5-4d4f-ae21-585d870d282e&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=790d0ef2-70b5-4d4f-ae21-585d870d282e&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' diff --git a/vcr/cassettes/features/case_workers/claims/injection_error.yml b/vcr/cassettes/features/case_workers/claims/injection_error.yml index 1d0550c990..a1c618bffe 100644 --- a/vcr/cassettes/features/case_workers/claims/injection_error.yml +++ b/vcr/cassettes/features/case_workers/claims/injection_error.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=e21a6099-56d9-4697-bd62-441a4b04ed8c&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=e21a6099-56d9-4697-bd62-441a4b04ed8c&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -47,7 +47,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:39:30 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=e21a6099-56d9-4697-bd62-441a4b04ed8c&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=e21a6099-56d9-4697-bd62-441a4b04ed8c&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -92,7 +92,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:39:31 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=e21a6099-56d9-4697-bd62-441a4b04ed8c&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=e21a6099-56d9-4697-bd62-441a4b04ed8c&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' diff --git a/vcr/cassettes/features/case_workers/claims/messaging.yml b/vcr/cassettes/features/case_workers/claims/messaging.yml index daf0eda4d3..2ef5ae846d 100644 --- a/vcr/cassettes/features/case_workers/claims/messaging.yml +++ b/vcr/cassettes/features/case_workers/claims/messaging.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=c8af71c3-6468-4869-a331-be0a29d32f76&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=c8af71c3-6468-4869-a331-be0a29d32f76&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -46,7 +46,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 12:43:29 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=c8af71c3-6468-4869-a331-be0a29d32f76&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=c8af71c3-6468-4869-a331-be0a29d32f76&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' diff --git a/vcr/cassettes/features/case_workers/claims/refuse.yml b/vcr/cassettes/features/case_workers/claims/refuse.yml index ec87f9e226..9a8ebcfa3c 100644 --- a/vcr/cassettes/features/case_workers/claims/refuse.yml +++ b/vcr/cassettes/features/case_workers/claims/refuse.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=b873a938-dc39-495f-a46e-a166f54be296&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=b873a938-dc39-495f-a46e-a166f54be296&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -46,7 +46,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:40:07 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=b873a938-dc39-495f-a46e-a166f54be296&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=b873a938-dc39-495f-a46e-a166f54be296&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -84,6 +84,6 @@ http_interactions: - '93' body: encoding: ASCII-8BIT - string: '{"pagination":{"current_page":1,"total_pages":0,"total_count":0,"limit_value":10},"items":[]}' + string: '{"pagination":{"current_page":1,"total_pages":1,"total_count":0,"limit_value":10},"items":[]}' recorded_at: Thu, 25 Apr 2024 11:40:08 GMT recorded_with: VCR 6.2.0 diff --git a/vcr/cassettes/features/case_workers/claims/reject.yml b/vcr/cassettes/features/case_workers/claims/reject.yml index af42aa9f93..e70f6882dc 100644 --- a/vcr/cassettes/features/case_workers/claims/reject.yml +++ b/vcr/cassettes/features/case_workers/claims/reject.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=e00ab308-f9b3-4382-9399-d9702efc1a34&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=e00ab308-f9b3-4382-9399-d9702efc1a34&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -46,7 +46,7 @@ http_interactions: recorded_at: Thu, 25 Apr 2024 11:40:14 GMT - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=e00ab308-f9b3-4382-9399-d9702efc1a34&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=e00ab308-f9b3-4382-9399-d9702efc1a34&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' diff --git a/vcr/cassettes/features/provider_management.yml b/vcr/cassettes/features/provider_management.yml index 4b5d60d14a..6685ba6347 100644 --- a/vcr/cassettes/features/provider_management.yml +++ b/vcr/cassettes/features/provider_management.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: http://localhost:3001/api/case_workers/claims?api_key=3db163fd-8bc6-4929-8c9d-975f8f189419&direction=asc&limit=10&page=0&search&sorting=last_submitted_at&status=current + uri: http://localhost:3001/api/case_workers/claims?api_key=3db163fd-8bc6-4929-8c9d-975f8f189419&direction=asc&limit=10&page=1&search&sorting=last_submitted_at&status=current body: encoding: US-ASCII string: '' @@ -40,6 +40,6 @@ http_interactions: - '93' body: encoding: ASCII-8BIT - string: '{"pagination":{"current_page":1,"total_pages":0,"total_count":0,"limit_value":10},"items":[]}' + string: '{"pagination":{"current_page":1,"total_pages":0,","total_count":0,"limit_value":10},"items":[]}' recorded_at: Thu, 25 Apr 2024 11:39:33 GMT recorded_with: VCR 6.2.0