Job
No job planned.
Difficulty
Easy
Cancel
Spec (updated on Wed Jul 30 14:40:43 2025)
describe("acquisitions/addtobasketoptions", 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("addtobasketoptions", function () {
cy.visit("/cgi-bin/koha/acqui/basket.pl?basketno=1");
cy.waitForPageLoad();
cy.get("#toolbar div.btn-group:nth-child(1) > a:nth-child(1)").click();
cy.get("#addtoBasket .modal-content").should('be.visible').screenshot("addtobasketoptions");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
acqui/basket.pl?basketno=1
Interface
staff
Element selector
#addtoBasket .modal-content
Missing selector
N
setup
workflow
click #toolbar div.btn-group:nth-child(1) > a:nth-child(1)
teardown
Notes
The modal dialog window needs to be screenshotted while it's still open.
Cancel
Additional KTD data
Cancel