Lines 23-30
function get_package() {
Link Here
|
23 |
|
23 |
|
24 |
describe("Dialog operations", () => { |
24 |
describe("Dialog operations", () => { |
25 |
before(() => { |
25 |
before(() => { |
26 |
cy.fetch_initial_ERM_sys_pref_value(); |
26 |
cy.intercept("GET", "/cgi-bin/koha/svc/config/systempreferences/?pref=ERMModule", '{"value":"1"}'); |
27 |
cy.set_ERM_sys_pref_value(true); |
27 |
cy.intercept("GET", "/cgi-bin/koha/svc/config/systempreferences/?pref=ERMProviders", '{"value":"local"}'); |
28 |
}); |
28 |
}); |
29 |
|
29 |
|
30 |
beforeEach(() => { |
30 |
beforeEach(() => { |
Lines 32-41
describe("Dialog operations", () => {
Link Here
|
32 |
cy.title().should("eq", "Koha staff interface"); |
32 |
cy.title().should("eq", "Koha staff interface"); |
33 |
}); |
33 |
}); |
34 |
|
34 |
|
35 |
after(() => { |
|
|
36 |
cy.reset_initial_ERM_sys_pref_value(); |
37 |
}); |
38 |
|
39 |
it("There are no ... defined", () => { |
35 |
it("There are no ... defined", () => { |
40 |
// GET packages returns empty list |
36 |
// GET packages returns empty list |
41 |
cy.intercept("GET", "/api/v1/erm/eholdings/local/packages*", { |
37 |
cy.intercept("GET", "/api/v1/erm/eholdings/local/packages*", { |