Bug 32131: Move set_ERM_sys_pref_value to before
We cannot (yet) move login to before, but we can set the pref before all the tests. We need to login in before anyway to retrieve the value of the pref. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
5d794c99cc
commit
fc48e6117f
|
|
@ -119,12 +119,12 @@ function get_licenses_to_relate() {
|
|||
describe("Agreement CRUD operations", () => {
|
||||
before(() => {
|
||||
cy.fetch_initial_ERM_sys_pref_value();
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.login("koha", "koha");
|
||||
cy.title().should("eq", "Koha staff interface");
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
after(() => {
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ function get_license() {
|
|||
describe("License CRUD operations", () => {
|
||||
before(() => {
|
||||
cy.fetch_initial_ERM_sys_pref_value();
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.login("koha", "koha");
|
||||
cy.title().should("eq", "Koha staff interface");
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
after(() => {
|
||||
|
|
|
|||
|
|
@ -26,12 +26,12 @@ function get_package() {
|
|||
describe("Package CRUD operations", () => {
|
||||
before(() => {
|
||||
cy.fetch_initial_ERM_sys_pref_value();
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.login("koha", "koha");
|
||||
cy.title().should("eq", "Koha staff interface");
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
after(() => {
|
||||
|
|
|
|||
|
|
@ -69,12 +69,12 @@ function get_packages_to_relate() {
|
|||
describe("Title CRUD operations", () => {
|
||||
before(() => {
|
||||
cy.fetch_initial_ERM_sys_pref_value();
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
cy.login("koha", "koha");
|
||||
cy.title().should("eq", "Koha staff interface");
|
||||
cy.set_ERM_sys_pref_value(true);
|
||||
});
|
||||
|
||||
after(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue