https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34076

--- Comment #14 from Philip Orr <[email protected]> ---
OK, got it working. Apparently the cy.select part was trying to select
an option too soon when it hadn't been loaded yet?
Anyway just adding cy.wait(2000); before selecting the option in the syspref 
fixed it for me.
```
    it("patrondebt", function () {
        cy.set_syspref("AllowFineOverride", "0");
        cy.query("DELETE FROM accountlines WHERE borrowernumber=5");
        cy.get(
            ":nth-child(2) > .biglinks-list > :nth-child(6) > .icon_general >
.fa"
        ).click();
        cy.get('fieldset > [type="text"]').type("AllowFineOverride");
        cy.get(".btn").click();
        cy.wait(2000);
        cy.get("#pref_AllowFineOverride").select("1");
        cy.get(".save-all").click();
        cy.get("#toplevelmenu > :nth-child(2) > a").click();
        cy.get("#search_patron_filter").clear();
        cy.get("#search_patron_filter").type("edna");
        cy.get(".action > .btn").click();
        cy.get("#menu > ul > :nth-child(3) > a").click();
        cy.get(".manualinvoice > a").click();
        cy.get("#amount").clear();
        cy.get("#amount").type("42");
        cy.get('[value="save"]').click();
        cy.get("#menu > ul > :nth-child(1) > a").click();
        cy.get("#barcode").clear();
        cy.get("#barcode").type("3999900000001");
        cy.get("#circ_circulation_issue > .btn").click();
        cy.get("#circ_needsconfirmation")
            .should("be.visible")
            .screenshot("patrondebt");
    });
```

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to