describe("acquisitions/newvendor1", function () {
const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'hi', 'zh-Hant-TW'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// Skip if 'en' test failed
if (Cypress.env("EN_TEST_FAILED")) {
this.skip();
}
cy.login();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("newvendor1", function () {
cy.visit("/cgi-bin/koha/acquisition/vendors/add");
cy.waitForPageLoad();
cy.get("div.accordion:first-of-type").should('be.visible').screenshot("newvendor1");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
// Set EN_TEST_FAILED if the 'en' test failed
if (this.currentTest.parent.title.includes('in en') && this.currentTest.state === 'failed') {
Cypress.env("EN_TEST_FAILED", true);
}
});
});
Spec data
Page
acquisition/vendors/add
Interface
staff
Element selector
div.accordion:first-of-type
Missing selector
Y
setup
workflow
teardown
Notes
"Aliases" is in a separate section. We'll need to update the acquisitions page in the manual since it has moved now. (We need to update the page anyway since the last changes to the vendor form were made)