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

(-)a/t/cypress/integration/Acquisitions/Vendors_spec.ts (+90 lines)
Lines 43-48 const getVendor = () => { Link Here
43
        ],
43
        ],
44
        invoice_currency: "USD",
44
        invoice_currency: "USD",
45
        invoice_includes_gst: false,
45
        invoice_includes_gst: false,
46
        lib_group_visibility: "|1|11|",
47
        lib_group_limits: [
48
            { id: 1, title: "LibGroup1" },
49
            { id: 11, title: "LibGroup2" },
50
        ],
46
        list_currency: "USD",
51
        list_currency: "USD",
47
        list_includes_gst: false,
52
        list_includes_gst: false,
48
        name: "My Vendor",
53
        name: "My Vendor",
Lines 225-236 describe("Vendor CRUD operations", () => { Link Here
225
                "X-Total-Count": "1",
230
                "X-Total-Count": "1",
226
            },
231
            },
227
        });
232
        });
233
        cy.intercept("GET", "/api/v1/acquisitions/vendors/*", vendor).as(
234
            "get-vendor"
235
        );
228
        cy.visit("/cgi-bin/koha/vendors");
236
        cy.visit("/cgi-bin/koha/vendors");
229
        const name_link = cy.get(
237
        const name_link = cy.get(
230
            "#vendors_list table tbody tr:first td:first a"
238
            "#vendors_list table tbody tr:first td:first a"
231
        );
239
        );
232
        name_link.should("have.text", vendor.name + " (#" + vendor.id + ")");
240
        name_link.should("have.text", vendor.name + " (#" + vendor.id + ")");
233
        name_link.click();
241
        name_link.click();
242
        cy.wait("@get-vendor");
234
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
243
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
235
        cy.get("#vendors_show h1").contains(vendor.name);
244
        cy.get("#vendors_show h1").contains(vendor.name);
236
245
Lines 299-310 describe("External URLs", () => { Link Here
299
                "X-Total-Count": "1",
308
                "X-Total-Count": "1",
300
            },
309
            },
301
        });
310
        });
311
        cy.intercept("GET", "/api/v1/acquisitions/vendors/*", vendor).as(
312
            "get-vendor"
313
        );
302
        cy.visit("/cgi-bin/koha/vendors");
314
        cy.visit("/cgi-bin/koha/vendors");
303
        const name_link = cy.get(
315
        const name_link = cy.get(
304
            "#vendors_list table tbody tr:first td:first a"
316
            "#vendors_list table tbody tr:first td:first a"
305
        );
317
        );
306
        name_link.should("have.text", vendor.name + " (#" + vendor.id + ")");
318
        name_link.should("have.text", vendor.name + " (#" + vendor.id + ")");
307
        name_link.click();
319
        name_link.click();
320
        cy.wait("@get-vendor");
308
        cy.wait(500);
321
        cy.wait(500);
309
        cy.get("#vendors_show h1").contains(vendor.name);
322
        cy.get("#vendors_show h1").contains(vendor.name);
310
323
Lines 312-314 describe("External URLs", () => { Link Here
312
        cy.get("h1").contains("Receive shipment from vendor " + vendor.name);
325
        cy.get("h1").contains("Receive shipment from vendor " + vendor.name);
313
    });
326
    });
314
});
327
});
328
329
describe("Library group limits", () => {
330
    beforeEach(() => {
331
        cy.login();
332
        cy.title().should("eq", "Koha staff interface");
333
        cy.intercept("GET", "/api/v1/library_groups*", {
334
            statusCode: 200,
335
            body: cy.getLibraryGroups(),
336
        });
337
    });
338
339
    it("Should show a dropdown of library groups", () => {
340
        cy.intercept("GET", "/api/v1/acquisitions/vendors*", {
341
            statusCode: 200,
342
            body: [],
343
        });
344
345
        // Click the button in the toolbar
346
        cy.visit("/cgi-bin/koha/vendors");
347
348
        cy.contains("New vendor").click();
349
        cy.get("#vendor_add h2").contains("New vendor");
350
351
        cy.get("#lib_group_visibility .vs__open-indicator").click();
352
        cy.get("#lib_group_visibility ul.vs__dropdown-menu").should(
353
            "be.visible"
354
        );
355
        cy.get("#lib_group_visibility ul.vs__dropdown-menu")
356
            .find("li")
357
            .as("options");
358
        cy.get("@options").should("have.length", 10);
359
360
        cy.get(
361
            "#lib_group_visibility ul.vs__dropdown-menu li:nth-child(1)"
362
        ).contains("LibGroup1");
363
        cy.get(
364
            "#lib_group_visibility ul.vs__dropdown-menu li:nth-child(4)"
365
        ).contains("LibGroup1 SubGroupB");
366
        cy.get(
367
            "#lib_group_visibility ul.vs__dropdown-menu li:nth-child(10)"
368
        ).contains("LibGroup2 SubGroupC SubGroup2");
369
    });
370
371
    it("Should show a table of library groups", () => {
372
        const vendor = getVendor();
373
374
        // Click the "name" link from the list
375
        cy.intercept("GET", "/api/v1/acquisitions/vendors*", {
376
            statusCode: 200,
377
            body: [vendor],
378
            headers: {
379
                "X-Base-Total-Count": "1",
380
                "X-Total-Count": "1",
381
            },
382
        });
383
384
        cy.intercept("GET", "/api/v1/acquisitions/vendors/*", vendor).as(
385
            "get-vendor"
386
        );
387
        cy.visit("/cgi-bin/koha/vendors");
388
        const name_link = cy.get(
389
            "#vendors_list table tbody tr:first td:first a"
390
        );
391
        name_link.should("have.text", vendor.name + " (#" + vendor.id + ")");
392
        name_link.click();
393
        cy.wait("@get-vendor");
394
        cy.wait(500); // Cypress is too fast! Vue hasn't populated the form yet!
395
        cy.get("#vendors_show h1").contains(vendor.name);
396
397
        cy.get(
398
            "#lib_group_visibility_table tbody tr:nth-child(1) td:nth-child(2)"
399
        ).contains("LibGroup1");
400
        cy.get(
401
            "#lib_group_visibility_table tbody tr:nth-child(2) td:nth-child(2)"
402
        ).contains("LibGroup2");
403
    });
404
});
(-)a/t/cypress/integration/stores/VendorStore_spec.ts (+71 lines)
Line 0 Link Here
1
import { setActivePinia, createPinia } from "pinia";
2
import { useVendorStore } from "../../../../koha-tmpl/intranet-tmpl/prog/js/vue/stores/vendors";
3
4
describe("VendorStore", () => {
5
    beforeEach(() => {
6
        setActivePinia(createPinia());
7
    });
8
    it("Should determine which branch to use when calling determineBranch()", () => {
9
        const store = useVendorStore();
10
11
        store.user.loggedInUser = { loggedInBranch: "XYZ", branchcode: "123" };
12
        const branch = store.determineBranch("ABC");
13
        expect(branch).to.eq("ABC");
14
15
        store.user.loggedInUser = { loggedInBranch: "XYZ", branchcode: "123" };
16
        const branch2 = store.determineBranch();
17
        expect(branch2).to.eq("XYZ");
18
19
        store.user.loggedInUser = { loggedInBranch: null, branchcode: "123" };
20
        const branch3 = store.determineBranch();
21
        expect(branch3).to.eq("123");
22
    });
23
    it("Should filter library groups by users branchcode when calling filterLibGroupsByUsersBranchcode", () => {
24
        const store = useVendorStore();
25
26
        store.setLibraryGroups(cy.getLibraryGroups());
27
        const filteredGroups = store.filterLibGroupsByUsersBranchcode("TPL");
28
29
        expect(filteredGroups).to.have.length(3);
30
        expect(filteredGroups[0].title).to.eq("LibGroup2");
31
        expect(filteredGroups[1].title).to.eq("LibGroup2 SubGroupC");
32
        expect(filteredGroups[2].title).to.eq("LibGroup2 SubGroupC SubGroup2");
33
34
        const filteredGroupsTwo = store.filterLibGroupsByUsersBranchcode(
35
            "MPL",
36
            filteredGroups.map(grp => grp.id)
37
        );
38
        expect(filteredGroupsTwo).to.have.length(2);
39
        expect(filteredGroupsTwo[0].title).to.eq("LibGroup2");
40
        expect(filteredGroupsTwo[1].title).to.eq("LibGroup2 SubGroupC");
41
    });
42
    it("Should format library groups ids when calling formatLibraryGroupIds", () => {
43
        const store = useVendorStore();
44
45
        let ids = store.formatLibraryGroupIds("1|2|3");
46
        expect(ids).to.deep.eql([1, 2, 3]);
47
48
        ids = store.formatLibraryGroupIds("1");
49
        expect(ids).to.eql([1]);
50
    });
51
    it("Should set library groups when calling setLibraryGroups", () => {
52
        const store = useVendorStore();
53
54
        store.setLibraryGroups(cy.getLibraryGroups());
55
        const libraryGroups = store.libraryGroups;
56
        expect(libraryGroups).to.have.length(3);
57
        expect(libraryGroups[0].title).to.eq("LibGroup1");
58
        expect(libraryGroups[1].title).to.eq("LibGroup2");
59
        expect(libraryGroups[2].title).to.eq("LibGroup3");
60
61
        expect(libraryGroups[0].libraries).to.have.length(2);
62
        expect(libraryGroups[0].subGroups).to.have.length(2);
63
        expect(libraryGroups[0].subGroups[0].libraries).to.have.length(2);
64
        expect(libraryGroups[0].subGroups[0].subGroups).to.have.length(2);
65
66
        expect(libraryGroups[1].libraries).to.have.length(3);
67
        expect(libraryGroups[1].subGroups).to.have.length(3);
68
        expect(libraryGroups[1].subGroups[0].libraries).to.have.length(2);
69
        expect(libraryGroups[1].subGroups[0].subGroups).to.have.length(2);
70
    });
71
});
(-)a/t/cypress/support/e2e.js (-1 / +565 lines)
Lines 1785-1789 cy.getSushiService = () => { Link Here
1785
    }
1785
    }
1786
}
1786
}
1787
1787
1788
cy.getLibraryGroups = () => {
1789
    return [
1790
        {
1791
            "branchcode": null,
1792
            "created_on": "2024-10-29T15:18:08+00:00",
1793
            "description": null,
1794
            "ft_acquisitions": true,
1795
            "ft_hide_patron_info": false,
1796
            "ft_limit_item_editing": false,
1797
            "ft_local_float_group": false,
1798
            "ft_local_hold_group": false,
1799
            "ft_search_groups_opac": false,
1800
            "ft_search_groups_staff": false,
1801
            "id": "1",
1802
            "parent_id": null,
1803
            "title": "LibGroup1",
1804
            "updated_on": "2024-10-29T15:18:08+00:00"
1805
        },
1806
        {
1807
            "branchcode": null,
1808
            "created_on": "2024-10-29T15:18:08+00:00",
1809
            "description": null,
1810
            "ft_acquisitions": false,
1811
            "ft_hide_patron_info": false,
1812
            "ft_limit_item_editing": false,
1813
            "ft_local_float_group": false,
1814
            "ft_local_hold_group": false,
1815
            "ft_search_groups_opac": false,
1816
            "ft_search_groups_staff": false,
1817
            "id": "2",
1818
            "parent_id": 1,
1819
            "title": "LibGroup1 SubGroupA",
1820
            "updated_on": "2024-10-29T15:18:08+00:00"
1821
        },
1822
        {
1823
            "branchcode": null,
1824
            "created_on": "2024-10-29T15:18:08+00:00",
1825
            "description": null,
1826
            "ft_acquisitions": false,
1827
            "ft_hide_patron_info": false,
1828
            "ft_limit_item_editing": false,
1829
            "ft_local_float_group": false,
1830
            "ft_local_hold_group": false,
1831
            "ft_search_groups_opac": false,
1832
            "ft_search_groups_staff": false,
1833
            "id": "3",
1834
            "parent_id": 2,
1835
            "title": "LibGroup1 SubGroupA SubGroup1",
1836
            "updated_on": "2024-10-29T15:18:08+00:00"
1837
        },
1838
        {
1839
            "branchcode": null,
1840
            "created_on": "2024-10-29T15:18:08+00:00",
1841
            "description": null,
1842
            "ft_acquisitions": false,
1843
            "ft_hide_patron_info": false,
1844
            "ft_limit_item_editing": false,
1845
            "ft_local_float_group": false,
1846
            "ft_local_hold_group": false,
1847
            "ft_search_groups_opac": false,
1848
            "ft_search_groups_staff": false,
1849
            "id": "4",
1850
            "parent_id": 2,
1851
            "title": "LibGroup1 SubGroupA SubGroup2",
1852
            "updated_on": "2024-10-29T15:18:08+00:00"
1853
        },
1854
        {
1855
            "branchcode": null,
1856
            "created_on": "2024-10-29T15:18:08+00:00",
1857
            "description": null,
1858
            "ft_acquisitions": false,
1859
            "ft_hide_patron_info": false,
1860
            "ft_limit_item_editing": false,
1861
            "ft_local_float_group": false,
1862
            "ft_local_hold_group": false,
1863
            "ft_search_groups_opac": false,
1864
            "ft_search_groups_staff": false,
1865
            "id": "5",
1866
            "parent_id": 1,
1867
            "title": "LibGroup1 SubGroupB",
1868
            "updated_on": "2024-10-29T15:18:08+00:00"
1869
        },
1870
        {
1871
            "branchcode": "CPL",
1872
            "created_on": "2024-10-29T15:18:08+00:00",
1873
            "description": null,
1874
            "ft_acquisitions": false,
1875
            "ft_hide_patron_info": false,
1876
            "ft_limit_item_editing": false,
1877
            "ft_local_float_group": false,
1878
            "ft_local_hold_group": false,
1879
            "ft_search_groups_opac": false,
1880
            "ft_search_groups_staff": false,
1881
            "id": "6",
1882
            "parent_id": 2,
1883
            "title": null,
1884
            "updated_on": "2024-10-29T15:18:08+00:00"
1885
        },
1886
        {
1887
            "branchcode": "FPL",
1888
            "created_on": "2024-10-29T15:18:08+00:00",
1889
            "description": null,
1890
            "ft_acquisitions": false,
1891
            "ft_hide_patron_info": false,
1892
            "ft_limit_item_editing": false,
1893
            "ft_local_float_group": false,
1894
            "ft_local_hold_group": false,
1895
            "ft_search_groups_opac": false,
1896
            "ft_search_groups_staff": false,
1897
            "id": "7",
1898
            "parent_id": 2,
1899
            "title": null,
1900
            "updated_on": "2024-10-29T15:18:08+00:00"
1901
        },
1902
        {
1903
            "branchcode": "CPL",
1904
            "created_on": "2024-10-29T15:18:08+00:00",
1905
            "description": null,
1906
            "ft_acquisitions": false,
1907
            "ft_hide_patron_info": false,
1908
            "ft_limit_item_editing": false,
1909
            "ft_local_float_group": false,
1910
            "ft_local_hold_group": false,
1911
            "ft_search_groups_opac": false,
1912
            "ft_search_groups_staff": false,
1913
            "id": "8",
1914
            "parent_id": 5,
1915
            "title": null,
1916
            "updated_on": "2024-10-29T15:18:08+00:00"
1917
        },
1918
        {
1919
            "branchcode": "FPL",
1920
            "created_on": "2024-10-29T15:18:08+00:00",
1921
            "description": null,
1922
            "ft_acquisitions": false,
1923
            "ft_hide_patron_info": false,
1924
            "ft_limit_item_editing": false,
1925
            "ft_local_float_group": false,
1926
            "ft_local_hold_group": false,
1927
            "ft_search_groups_opac": false,
1928
            "ft_search_groups_staff": false,
1929
            "id": "9",
1930
            "parent_id": 3,
1931
            "title": null,
1932
            "updated_on": "2024-10-29T15:18:08+00:00"
1933
        },
1934
        {
1935
            "branchcode": "CPL",
1936
            "created_on": "2024-10-29T15:18:08+00:00",
1937
            "description": null,
1938
            "ft_acquisitions": false,
1939
            "ft_hide_patron_info": false,
1940
            "ft_limit_item_editing": false,
1941
            "ft_local_float_group": false,
1942
            "ft_local_hold_group": false,
1943
            "ft_search_groups_opac": false,
1944
            "ft_search_groups_staff": false,
1945
            "id": "10",
1946
            "parent_id": 4,
1947
            "title": null,
1948
            "updated_on": "2024-10-29T15:18:08+00:00"
1949
        },
1950
        {
1951
            "branchcode": null,
1952
            "created_on": "2024-10-29T15:18:08+00:00",
1953
            "description": null,
1954
            "ft_acquisitions": true,
1955
            "ft_hide_patron_info": false,
1956
            "ft_limit_item_editing": false,
1957
            "ft_local_float_group": false,
1958
            "ft_local_hold_group": false,
1959
            "ft_search_groups_opac": false,
1960
            "ft_search_groups_staff": false,
1961
            "id": "11",
1962
            "parent_id": null,
1963
            "title": "LibGroup2",
1964
            "updated_on": "2024-10-29T15:18:08+00:00"
1965
        },
1966
        {
1967
            "branchcode": null,
1968
            "created_on": "2024-10-29T15:18:08+00:00",
1969
            "description": null,
1970
            "ft_acquisitions": false,
1971
            "ft_hide_patron_info": false,
1972
            "ft_limit_item_editing": false,
1973
            "ft_local_float_group": false,
1974
            "ft_local_hold_group": false,
1975
            "ft_search_groups_opac": false,
1976
            "ft_search_groups_staff": false,
1977
            "id": "12",
1978
            "parent_id": 11,
1979
            "title": "LibGroup2 SubGroupA",
1980
            "updated_on": "2024-10-29T15:18:08+00:00"
1981
        },
1982
        {
1983
            "branchcode": null,
1984
            "created_on": "2024-10-29T15:18:08+00:00",
1985
            "description": null,
1986
            "ft_acquisitions": false,
1987
            "ft_hide_patron_info": false,
1988
            "ft_limit_item_editing": false,
1989
            "ft_local_float_group": false,
1990
            "ft_local_hold_group": false,
1991
            "ft_search_groups_opac": false,
1992
            "ft_search_groups_staff": false,
1993
            "id": "13",
1994
            "parent_id": 12,
1995
            "title": "LibGroup2 SubGroupA SubGroup1",
1996
            "updated_on": "2024-10-29T15:18:08+00:00"
1997
        },
1998
        {
1999
            "branchcode": null,
2000
            "created_on": "2024-10-29T15:18:08+00:00",
2001
            "description": null,
2002
            "ft_acquisitions": false,
2003
            "ft_hide_patron_info": false,
2004
            "ft_limit_item_editing": false,
2005
            "ft_local_float_group": false,
2006
            "ft_local_hold_group": false,
2007
            "ft_search_groups_opac": false,
2008
            "ft_search_groups_staff": false,
2009
            "id": "14",
2010
            "parent_id": 12,
2011
            "title": "LibGroup2 SubGroupA SubGroup2",
2012
            "updated_on": "2024-10-29T15:18:08+00:00"
2013
        },
2014
        {
2015
            "branchcode": null,
2016
            "created_on": "2024-10-29T15:18:08+00:00",
2017
            "description": null,
2018
            "ft_acquisitions": false,
2019
            "ft_hide_patron_info": false,
2020
            "ft_limit_item_editing": false,
2021
            "ft_local_float_group": false,
2022
            "ft_local_hold_group": false,
2023
            "ft_search_groups_opac": false,
2024
            "ft_search_groups_staff": false,
2025
            "id": "15",
2026
            "parent_id": 11,
2027
            "title": "LibGroup2 SubGroupB",
2028
            "updated_on": "2024-10-29T15:18:08+00:00"
2029
        },
2030
        {
2031
            "branchcode": null,
2032
            "created_on": "2024-10-29T15:18:08+00:00",
2033
            "description": null,
2034
            "ft_acquisitions": false,
2035
            "ft_hide_patron_info": false,
2036
            "ft_limit_item_editing": false,
2037
            "ft_local_float_group": false,
2038
            "ft_local_hold_group": false,
2039
            "ft_search_groups_opac": false,
2040
            "ft_search_groups_staff": false,
2041
            "id": "16",
2042
            "parent_id": 11,
2043
            "title": "LibGroup2 SubGroupC",
2044
            "updated_on": "2024-10-29T15:18:08+00:00"
2045
        },
2046
        {
2047
            "branchcode": null,
2048
            "created_on": "2024-10-29T15:18:08+00:00",
2049
            "description": null,
2050
            "ft_acquisitions": false,
2051
            "ft_hide_patron_info": false,
2052
            "ft_limit_item_editing": false,
2053
            "ft_local_float_group": false,
2054
            "ft_local_hold_group": false,
2055
            "ft_search_groups_opac": false,
2056
            "ft_search_groups_staff": false,
2057
            "id": "17",
2058
            "parent_id": 16,
2059
            "title": "LibGroup2 SubGroupC SubGroup1",
2060
            "updated_on": "2024-10-29T15:18:08+00:00"
2061
        },
2062
        {
2063
            "branchcode": null,
2064
            "created_on": "2024-10-29T15:18:08+00:00",
2065
            "description": null,
2066
            "ft_acquisitions": false,
2067
            "ft_hide_patron_info": false,
2068
            "ft_limit_item_editing": false,
2069
            "ft_local_float_group": false,
2070
            "ft_local_hold_group": false,
2071
            "ft_search_groups_opac": false,
2072
            "ft_search_groups_staff": false,
2073
            "id": "18",
2074
            "parent_id": 16,
2075
            "title": "LibGroup2 SubGroupC SubGroup2",
2076
            "updated_on": "2024-10-29T15:18:08+00:00"
2077
        },
2078
        {
2079
            "branchcode": "CPL",
2080
            "created_on": "2024-10-29T15:18:08+00:00",
2081
            "description": null,
2082
            "ft_acquisitions": false,
2083
            "ft_hide_patron_info": false,
2084
            "ft_limit_item_editing": false,
2085
            "ft_local_float_group": false,
2086
            "ft_local_hold_group": false,
2087
            "ft_search_groups_opac": false,
2088
            "ft_search_groups_staff": false,
2089
            "id": "19",
2090
            "parent_id": 12,
2091
            "title": null,
2092
            "updated_on": "2024-10-29T15:18:08+00:00"
2093
        },
2094
        {
2095
            "branchcode": "MPL",
2096
            "created_on": "2024-10-29T15:18:08+00:00",
2097
            "description": null,
2098
            "ft_acquisitions": false,
2099
            "ft_hide_patron_info": false,
2100
            "ft_limit_item_editing": false,
2101
            "ft_local_float_group": false,
2102
            "ft_local_hold_group": false,
2103
            "ft_search_groups_opac": false,
2104
            "ft_search_groups_staff": false,
2105
            "id": "20",
2106
            "parent_id": 12,
2107
            "title": null,
2108
            "updated_on": "2024-10-29T15:18:08+00:00"
2109
        },
2110
        {
2111
            "branchcode": "CPL",
2112
            "created_on": "2024-10-29T15:18:08+00:00",
2113
            "description": null,
2114
            "ft_acquisitions": false,
2115
            "ft_hide_patron_info": false,
2116
            "ft_limit_item_editing": false,
2117
            "ft_local_float_group": false,
2118
            "ft_local_hold_group": false,
2119
            "ft_search_groups_opac": false,
2120
            "ft_search_groups_staff": false,
2121
            "id": "21",
2122
            "parent_id": 15,
2123
            "title": null,
2124
            "updated_on": "2024-10-29T15:18:08+00:00"
2125
        },
2126
        {
2127
            "branchcode": "CPL",
2128
            "created_on": "2024-10-29T15:18:08+00:00",
2129
            "description": null,
2130
            "ft_acquisitions": false,
2131
            "ft_hide_patron_info": false,
2132
            "ft_limit_item_editing": false,
2133
            "ft_local_float_group": false,
2134
            "ft_local_hold_group": false,
2135
            "ft_search_groups_opac": false,
2136
            "ft_search_groups_staff": false,
2137
            "id": "22",
2138
            "parent_id": 16,
2139
            "title": null,
2140
            "updated_on": "2024-10-29T15:18:08+00:00"
2141
        },
2142
        {
2143
            "branchcode": "MPL",
2144
            "created_on": "2024-10-29T15:18:08+00:00",
2145
            "description": null,
2146
            "ft_acquisitions": false,
2147
            "ft_hide_patron_info": false,
2148
            "ft_limit_item_editing": false,
2149
            "ft_local_float_group": false,
2150
            "ft_local_hold_group": false,
2151
            "ft_search_groups_opac": false,
2152
            "ft_search_groups_staff": false,
2153
            "id": "23",
2154
            "parent_id": 16,
2155
            "title": null,
2156
            "updated_on": "2024-10-29T15:18:08+00:00"
2157
        },
2158
        {
2159
            "branchcode": "TPL",
2160
            "created_on": "2024-10-29T15:18:08+00:00",
2161
            "description": null,
2162
            "ft_acquisitions": false,
2163
            "ft_hide_patron_info": false,
2164
            "ft_limit_item_editing": false,
2165
            "ft_local_float_group": false,
2166
            "ft_local_hold_group": false,
2167
            "ft_search_groups_opac": false,
2168
            "ft_search_groups_staff": false,
2169
            "id": "24",
2170
            "parent_id": 16,
2171
            "title": null,
2172
            "updated_on": "2024-10-29T15:18:08+00:00"
2173
        },
2174
        {
2175
            "branchcode": "MPL",
2176
            "created_on": "2024-10-29T15:18:08+00:00",
2177
            "description": null,
2178
            "ft_acquisitions": false,
2179
            "ft_hide_patron_info": false,
2180
            "ft_limit_item_editing": false,
2181
            "ft_local_float_group": false,
2182
            "ft_local_hold_group": false,
2183
            "ft_search_groups_opac": false,
2184
            "ft_search_groups_staff": false,
2185
            "id": "25",
2186
            "parent_id": 13,
2187
            "title": null,
2188
            "updated_on": "2024-10-29T15:18:08+00:00"
2189
        },
2190
        {
2191
            "branchcode": "CPL",
2192
            "created_on": "2024-10-29T15:18:08+00:00",
2193
            "description": null,
2194
            "ft_acquisitions": false,
2195
            "ft_hide_patron_info": false,
2196
            "ft_limit_item_editing": false,
2197
            "ft_local_float_group": false,
2198
            "ft_local_hold_group": false,
2199
            "ft_search_groups_opac": false,
2200
            "ft_search_groups_staff": false,
2201
            "id": "26",
2202
            "parent_id": 14,
2203
            "title": null,
2204
            "updated_on": "2024-10-29T15:18:08+00:00"
2205
        },
2206
        {
2207
            "branchcode": "MPL",
2208
            "created_on": "2024-10-29T15:18:08+00:00",
2209
            "description": null,
2210
            "ft_acquisitions": false,
2211
            "ft_hide_patron_info": false,
2212
            "ft_limit_item_editing": false,
2213
            "ft_local_float_group": false,
2214
            "ft_local_hold_group": false,
2215
            "ft_search_groups_opac": false,
2216
            "ft_search_groups_staff": false,
2217
            "id": "27",
2218
            "parent_id": 17,
2219
            "title": null,
2220
            "updated_on": "2024-10-29T15:18:08+00:00"
2221
        },
2222
        {
2223
            "branchcode": "CPL",
2224
            "created_on": "2024-10-29T15:18:08+00:00",
2225
            "description": null,
2226
            "ft_acquisitions": false,
2227
            "ft_hide_patron_info": false,
2228
            "ft_limit_item_editing": false,
2229
            "ft_local_float_group": false,
2230
            "ft_local_hold_group": false,
2231
            "ft_search_groups_opac": false,
2232
            "ft_search_groups_staff": false,
2233
            "id": "28",
2234
            "parent_id": 18,
2235
            "title": null,
2236
            "updated_on": "2024-10-29T15:18:08+00:00"
2237
        },
2238
        {
2239
            "branchcode": "TPL",
2240
            "created_on": "2024-10-29T15:18:08+00:00",
2241
            "description": null,
2242
            "ft_acquisitions": false,
2243
            "ft_hide_patron_info": false,
2244
            "ft_limit_item_editing": false,
2245
            "ft_local_float_group": false,
2246
            "ft_local_hold_group": false,
2247
            "ft_search_groups_opac": false,
2248
            "ft_search_groups_staff": false,
2249
            "id": "29",
2250
            "parent_id": 18,
2251
            "title": null,
2252
            "updated_on": "2024-10-29T15:18:08+00:00"
2253
        },
2254
        {
2255
            "branchcode": null,
2256
            "created_on": "2024-10-29T15:18:08+00:00",
2257
            "description": null,
2258
            "ft_acquisitions": true,
2259
            "ft_hide_patron_info": false,
2260
            "ft_limit_item_editing": false,
2261
            "ft_local_float_group": false,
2262
            "ft_local_hold_group": false,
2263
            "ft_search_groups_opac": false,
2264
            "ft_search_groups_staff": false,
2265
            "id": "30",
2266
            "parent_id": null,
2267
            "title": "LibGroup3",
2268
            "updated_on": "2024-10-29T15:18:08+00:00"
2269
        },
2270
        {
2271
            "branchcode": null,
2272
            "created_on": "2024-10-29T15:18:08+00:00",
2273
            "description": null,
2274
            "ft_acquisitions": false,
2275
            "ft_hide_patron_info": false,
2276
            "ft_limit_item_editing": false,
2277
            "ft_local_float_group": false,
2278
            "ft_local_hold_group": false,
2279
            "ft_search_groups_opac": false,
2280
            "ft_search_groups_staff": false,
2281
            "id": "31",
2282
            "parent_id": 30,
2283
            "title": "LibGroup3 SubGroupA",
2284
            "updated_on": "2024-10-29T15:18:08+00:00"
2285
        },
2286
        {
2287
            "branchcode": "FFL",
2288
            "created_on": "2024-10-29T15:18:08+00:00",
2289
            "description": null,
2290
            "ft_acquisitions": false,
2291
            "ft_hide_patron_info": false,
2292
            "ft_limit_item_editing": false,
2293
            "ft_local_float_group": false,
2294
            "ft_local_hold_group": false,
2295
            "ft_search_groups_opac": false,
2296
            "ft_search_groups_staff": false,
2297
            "id": "32",
2298
            "parent_id": 31,
2299
            "title": null,
2300
            "updated_on": "2024-10-29T15:18:08+00:00"
2301
        },
2302
        {
2303
            "branchcode": null,
2304
            "created_on": "2024-10-29T15:18:08+00:00",
2305
            "description": null,
2306
            "ft_acquisitions": false,
2307
            "ft_hide_patron_info": false,
2308
            "ft_limit_item_editing": false,
2309
            "ft_local_float_group": false,
2310
            "ft_local_hold_group": false,
2311
            "ft_search_groups_opac": false,
2312
            "ft_search_groups_staff": false,
2313
            "id": "33",
2314
            "parent_id": null,
2315
            "title": "LibGroup4",
2316
            "updated_on": "2024-10-29T15:18:08+00:00"
2317
        },
2318
        {
2319
            "branchcode": null,
2320
            "created_on": "2024-10-29T15:18:08+00:00",
2321
            "description": null,
2322
            "ft_acquisitions": false,
2323
            "ft_hide_patron_info": false,
2324
            "ft_limit_item_editing": false,
2325
            "ft_local_float_group": false,
2326
            "ft_local_hold_group": false,
2327
            "ft_search_groups_opac": false,
2328
            "ft_search_groups_staff": false,
2329
            "id": "34",
2330
            "parent_id": 33,
2331
            "title": "LibGroup4 SubGroupA",
2332
            "updated_on": "2024-10-29T15:18:08+00:00"
2333
        },
2334
        {
2335
            "branchcode": "CPL",
2336
            "created_on": "2024-10-29T15:18:08+00:00",
2337
            "description": null,
2338
            "ft_acquisitions": false,
2339
            "ft_hide_patron_info": false,
2340
            "ft_limit_item_editing": false,
2341
            "ft_local_float_group": false,
2342
            "ft_local_hold_group": false,
2343
            "ft_search_groups_opac": false,
2344
            "ft_search_groups_staff": false,
2345
            "id": "35",
2346
            "parent_id": 34,
2347
            "title": null,
2348
            "updated_on": "2024-10-29T15:18:08+00:00"
2349
        }
2350
    ]
2351
}
2352
1788
const mysql = require('cypress-mysql');
2353
const mysql = require('cypress-mysql');
1789
mysql.addCommands();
2354
mysql.addCommands();
1790
- 

Return to bug 38290