https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34076
--- Comment #12 from Philip Orr <[email protected]> --- Thanks for the update. After a git pull step 6 works for me now, no problems. I'm getting a different error now in part 7: >>We want to modify this code to define the conditions to make it always pass: >>>>set the syspref to 0 and delete the fines we created for the patron. >>See the comment in the code below: >> it.only('patrondebt', function() { >> cy.set_syspref("AllowFineOverride", "0"); // We set the syspref >> >>AllowFineOverride to 0 >> cy.query( // We remove the accountlines for the patron we are going >> to use (edna) >>... I tried it first with my own cypress-studio-generated code and then tried it again with this code: ``` it.only('patrondebt', function() { cy.set_syspref("AllowFineOverride", "0"); // set syspref allowfineoverride to 0 cy.query( //we remove the accountlines for patron we will use (edna "DELETE FROM accountlines WHERE borrowernumber=5" ); cy.get(':nth-child(2) > .biglinks-list > :nth-child(6) > .icon_general').click(); cy.get('fieldset > [type="text"]').type('AllowFineOverride'); cy.get('.btn').click(); cy.get('#pref_AllowFineOverride').select('1'); cy.get('.save-all').click(); cy.get('img').click(); cy.get('#findborrower').clear(); cy.get('#findborrower').type('lisa charles{enter}'); cy.get('#patronsearch > button').click(); cy.get('#menu > ul > :nth-child(3) > a').click(); cy.get('.manualinvoice > a').click(); cy.get('#type').select('MANUAL'); cy.get('#amount').clear('5'); cy.get('#amount').type('5.00'); cy.get('[value="save"]').click(); cy.get('#menu > ul > :nth-child(1) > a').click(); cy.get('#barcode').clear('39999000005615'); cy.get('#barcode').type('39999000005615{enter}'); cy.get('#circ_circulation_issue > .btn').click(); cy.get('#circ_needsconfirmation').should('be.visible').screenshot("patrondebt"); }); }); ``` In both cases I got an error running the test: ``` cy.select() failed because this element is disabled: <select name="pref_AllowFineOverride" id="pref_AllowFineOverride" class="preference preference-choice">...</select> ``` -- 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/
