Job
No job planned.
Difficulty
Hard
Cancel
Spec (updated on Wed Jul 23 15:04:07 2025)
describe("acquisitions/newvendor-interfaces", 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("newvendor-interfaces", function () {
cy.visit("/cgi-bin/koha/acquisition/vendors/add");
cy.waitForPageLoad();
cy.get("#interfaces .btn-default").click();
cy.get("#interfaces").should('be.visible').screenshot("newvendor-interfaces");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
acquisition/vendors/add
Interface
staff
Element selector
#interfaces
Missing selector
N
setup
workflow
click #interfaces .btn-default
teardown
Notes
Code refuse to simulate the click on the class="btn btn-default" which trigger "add_interface()" in order to get the full interface.
Cancel
Additional KTD data
Cancel