View | Details | Raw Unified | Return to bug 37930
Collapse All | Expand All

(-)a/t/cypress/integration/Preservation/Settings.ts (-36 / +39 lines)
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", () => {
(-)a/t/cypress/integration/Preservation/Trains.ts (-35 / +44 lines)
Lines 213-255 describe("Trains", () => { Link Here
213
        );
213
        );
214
214
215
        cy.intercept(
215
        cy.intercept(
216
            "GET",
216
            {
217
            "/api/v1/authorised_value_categories/NOT_LOAN/authorised_values",
217
                method: "GET",
218
                url: "/api/v1/authorised_value_categories?*",
219
                times: 1,
220
            },
218
            [
221
            [
219
                {
222
                {
223
                    authorised_values: [
224
                        {
225
                            category_name: "NOT_LOAN",
226
                            description: "Ordered",
227
                            value: "-1",
228
                        },
229
                        {
230
                            category_name: "NOT_LOAN",
231
                            description: "Not for loan",
232
                            value: "1",
233
                        },
234
                        {
235
                            category_name: "NOT_LOAN",
236
                            description: "Staff collection",
237
                            value: "2",
238
                        },
239
                        {
240
                            category_name: "NOT_LOAN",
241
                            description: "Added to bundle",
242
                            value: "3",
243
                        },
244
                        {
245
                            category_name: "NOT_LOAN",
246
                            description: "In preservation",
247
                            value: "24",
248
                        },
249
                        {
250
                            category_name: "NOT_LOAN",
251
                            description: "In preservation external",
252
                            value: "42",
253
                        },
254
                        {
255
                            category_name: "NOT_LOAN",
256
                            description: "In preservation other",
257
                            value: "43",
258
                        },
259
                    ],
220
                    category_name: "NOT_LOAN",
260
                    category_name: "NOT_LOAN",
221
                    description: "Ordered",
261
                    is_integer_only: false,
222
                    value: "-1",
262
                    is_system: true,
223
                },
224
                {
225
                    category_name: "NOT_LOAN",
226
                    description: "Not for loan",
227
                    value: "1",
228
                },
229
                {
230
                    category_name: "NOT_LOAN",
231
                    description: "Staff collection",
232
                    value: "2",
233
                },
234
                {
235
                    category_name: "NOT_LOAN",
236
                    description: "Added to bundle",
237
                    value: "3",
238
                },
239
                {
240
                    category_name: "NOT_LOAN",
241
                    description: "In preservation",
242
                    value: "24",
243
                },
244
                {
245
                    category_name: "NOT_LOAN",
246
                    description: "In preservation external",
247
                    value: "42",
248
                },
249
                {
250
                    category_name: "NOT_LOAN",
251
                    description: "In preservation other",
252
                    value: "43",
253
                },
263
                },
254
            ]
264
            ]
255
        );
265
        );
256
- 

Return to bug 37930