Bugzilla – Attachment 171558 Details for
Bug 37930
Change how we handle authorised values in Vue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37930: Update cypress tests
Bug-37930-Update-cypress-tests.patch (text/plain), 7.03 KB, created by
Matt Blenkinsop
on 2024-09-16 15:31:44 UTC
(
hide
)
Description:
Bug 37930: Update cypress tests
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-09-16 15:31:44 UTC
Size:
7.03 KB
patch
obsolete
>From 9f89f83e1319a18e2adc2af961511be08050d7a8 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Mon, 16 Sep 2024 15:29:32 +0000 >Subject: [PATCH] Bug 37930: Update cypress tests > >Test plan: >1) Run the cypress tests for ERM and Preservation >2) All tests should still pass >--- > .../integration/Preservation/Settings.ts | 75 +++++++++--------- > t/cypress/integration/Preservation/Trains.ts | 78 +++++++++++-------- > 2 files changed, 83 insertions(+), 70 deletions(-) > >diff --git a/t/cypress/integration/Preservation/Settings.ts b/t/cypress/integration/Preservation/Settings.ts >index 9ad10dd4b30..5ae14725676 100644 >--- a/t/cypress/integration/Preservation/Settings.ts >+++ b/t/cypress/integration/Preservation/Settings.ts >@@ -42,42 +42,45 @@ describe("Processings", () => { > '{"permissions":{"manage_sysprefs":"1"},"settings":{"enabled":"1","not_for_loan_default_train_in":"42","not_for_loan_waiting_list_in": "24"}}' > ); > >- cy.intercept( >- "GET", >- "/api/v1/authorised_value_categories/NOT_LOAN/authorised_values", >- [ >- { >- category_name: "NOT_LOAN", >- description: "Ordered", >- value: "-1", >- }, >- { >- category_name: "NOT_LOAN", >- description: "Not for loan", >- value: "1", >- }, >- { >- category_name: "NOT_LOAN", >- description: "Staff collection", >- value: "2", >- }, >- { >- category_name: "NOT_LOAN", >- description: "Added to bundle", >- value: "3", >- }, >- { >- category_name: "NOT_LOAN", >- description: "In preservation", >- value: "24", >- }, >- { >- category_name: "NOT_LOAN", >- description: "In preservation external", >- value: "42", >- }, >- ] >- ); >+ cy.intercept("GET", "/api/v1/authorised_value_categories?*", [ >+ { >+ authorised_values: [ >+ { >+ category_name: "NOT_LOAN", >+ description: "Ordered", >+ value: "-1", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "Not for loan", >+ value: "1", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "Staff collection", >+ value: "2", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "Added to bundle", >+ value: "3", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "In preservation", >+ value: "24", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "In preservation external", >+ value: "42", >+ }, >+ ], >+ category_name: "NOT_LOAN", >+ is_integer_only: false, >+ is_system: true, >+ }, >+ ]); > }); > > it("Settings", () => { >diff --git a/t/cypress/integration/Preservation/Trains.ts b/t/cypress/integration/Preservation/Trains.ts >index 117614b189f..d6ffed9d75b 100644 >--- a/t/cypress/integration/Preservation/Trains.ts >+++ b/t/cypress/integration/Preservation/Trains.ts >@@ -213,43 +213,53 @@ describe("Trains", () => { > ); > > cy.intercept( >- "GET", >- "/api/v1/authorised_value_categories/NOT_LOAN/authorised_values", >+ { >+ method: "GET", >+ url: "/api/v1/authorised_value_categories?*", >+ times: 1, >+ }, > [ > { >+ authorised_values: [ >+ { >+ category_name: "NOT_LOAN", >+ description: "Ordered", >+ value: "-1", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "Not for loan", >+ value: "1", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "Staff collection", >+ value: "2", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "Added to bundle", >+ value: "3", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "In preservation", >+ value: "24", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "In preservation external", >+ value: "42", >+ }, >+ { >+ category_name: "NOT_LOAN", >+ description: "In preservation other", >+ value: "43", >+ }, >+ ], > category_name: "NOT_LOAN", >- description: "Ordered", >- value: "-1", >- }, >- { >- category_name: "NOT_LOAN", >- description: "Not for loan", >- value: "1", >- }, >- { >- category_name: "NOT_LOAN", >- description: "Staff collection", >- value: "2", >- }, >- { >- category_name: "NOT_LOAN", >- description: "Added to bundle", >- value: "3", >- }, >- { >- category_name: "NOT_LOAN", >- description: "In preservation", >- value: "24", >- }, >- { >- category_name: "NOT_LOAN", >- description: "In preservation external", >- value: "42", >- }, >- { >- category_name: "NOT_LOAN", >- description: "In preservation other", >- value: "43", >+ is_integer_only: false, >+ is_system: true, > }, > ] > ); >-- >2.39.3 (Apple Git-146)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37930
:
171556
|
171557
|
171558
|
171628
|
172863
|
172864
|
172865
|
172886
|
172887
|
172888
|
172979
|
173069