Job
No job planned.
Difficulty
Cancel
Spec (updated on Thu Jul 31 13:05:08 2025)
describe("cataloging/inventory/shelflist", 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.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("shelflist", function () {
cy.visit("/cgi-bin/koha/tools/inventory.pl");
cy.waitForPageLoad();
cy.get("#branchloop").select("CPL", {force: true});
cy.get("#locationloop").select("GEN", {force: true});
cy.get("#ccodeloop").select("NFIC", {force: true});
cy.get("input[type='submit']").click();
cy.waitForPageLoad();
cy.get("main").should('be.visible').screenshot("shelflist");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
inventory.pl
Interface
staff
Element selector
main
Missing selector
setup
workflow
select #branchloop=CPL
select #locationloop=GEN
select #ccodeloop=NFIC
click input[type='submit']
wait_for_page_load
teardown
Notes
I added limits to the selection, otherwise the list was very long.
Cancel
Additional KTD data
Cancel