Lines 42-83
describe("Processings", () => {
Link Here
|
42 |
'{"permissions":{"manage_sysprefs":"1"},"settings":{"enabled":"1","not_for_loan_default_train_in":"42","not_for_loan_waiting_list_in": "24"}}' |
42 |
'{"permissions":{"manage_sysprefs":"1"},"settings":{"enabled":"1","not_for_loan_default_train_in":"42","not_for_loan_waiting_list_in": "24"}}' |
43 |
); |
43 |
); |
44 |
|
44 |
|
45 |
cy.intercept( |
45 |
cy.intercept("GET", "/api/v1/authorised_value_categories?*", [ |
46 |
"GET", |
46 |
{ |
47 |
"/api/v1/authorised_value_categories/NOT_LOAN/authorised_values", |
47 |
authorised_values: [ |
48 |
[ |
48 |
{ |
49 |
{ |
49 |
category_name: "NOT_LOAN", |
50 |
category_name: "NOT_LOAN", |
50 |
description: "Ordered", |
51 |
description: "Ordered", |
51 |
value: "-1", |
52 |
value: "-1", |
52 |
}, |
53 |
}, |
53 |
{ |
54 |
{ |
54 |
category_name: "NOT_LOAN", |
55 |
category_name: "NOT_LOAN", |
55 |
description: "Not for loan", |
56 |
description: "Not for loan", |
56 |
value: "1", |
57 |
value: "1", |
57 |
}, |
58 |
}, |
58 |
{ |
59 |
{ |
59 |
category_name: "NOT_LOAN", |
60 |
category_name: "NOT_LOAN", |
60 |
description: "Staff collection", |
61 |
description: "Staff collection", |
61 |
value: "2", |
62 |
value: "2", |
62 |
}, |
63 |
}, |
63 |
{ |
64 |
{ |
64 |
category_name: "NOT_LOAN", |
65 |
category_name: "NOT_LOAN", |
65 |
description: "Added to bundle", |
66 |
description: "Added to bundle", |
66 |
value: "3", |
67 |
value: "3", |
67 |
}, |
68 |
}, |
68 |
{ |
69 |
{ |
69 |
category_name: "NOT_LOAN", |
70 |
category_name: "NOT_LOAN", |
70 |
description: "In preservation", |
71 |
description: "In preservation", |
71 |
value: "24", |
72 |
value: "24", |
72 |
}, |
73 |
}, |
73 |
{ |
74 |
{ |
74 |
category_name: "NOT_LOAN", |
75 |
category_name: "NOT_LOAN", |
75 |
description: "In preservation external", |
76 |
description: "In preservation external", |
76 |
value: "42", |
77 |
value: "42", |
77 |
}, |
78 |
}, |
78 |
], |
79 |
] |
79 |
category_name: "NOT_LOAN", |
80 |
); |
80 |
is_integer_only: false, |
|
|
81 |
is_system: true, |
82 |
}, |
83 |
]); |
81 |
}); |
84 |
}); |
82 |
|
85 |
|
83 |
it("Settings", () => { |
86 |
it("Settings", () => { |