Job
No job planned.
Difficulty
Medium
Cancel
Spec (updated on Wed Jul 23 15:04:22 2025)
describe("circ/transferstatus", function () {
const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'zh-Hant-TW'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// If previous test failed, skip this one
if (Cypress.env("TEST_FAILED")) {
this.skip();
}
cy.query("INSERT INTO branchtransfers (itemnumber, frombranch, tobranch, reason, daterequested, datesent) VALUE (278, \"FFL\", \"CPL\", \"Manual\", NOW(), NOW())")
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("transferstatus", function () {
cy.visit("/cgi-bin/koha/catalogue/detail.pl?biblionumber=131");
cy.waitForPageLoad();
cy.waitForTableLoad();
cy.get("#bibliodetails").should('be.visible').screenshot("transferstatus");
});
});
});
afterEach(function () {
cy.query("DELETE FROM branchtransfers WHERE itemnumber=278 and frombranch=\"FFL\"")
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
catalogue/detail.pl?biblionumber=131
Interface
staff
Element selector
#bibliodetails
Missing selector
N
setup
sql INSERT INTO branchtransfers (itemnumber, frombranch, tobranch, reason, daterequested, datesent) VALUE (278, "FFL", "CPL", "Manual", NOW(), NOW())
workflow
wait_for_table_load
teardown
sql DELETE FROM branchtransfers WHERE itemnumber=278 and frombranch="FFL"
Notes
Cancel
Additional KTD data
Cancel