describe("cataloging/authmergechoice", 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("authmergechoice", function () {
cy.visit("/cgi-bin/koha/authorities/merge.pl?authid=499&authid=942");
cy.waitForPageLoad();
cy.get("main").should('be.visible').screenshot("authmergechoice");
});
});
});
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
authorities/merge.pl?authid=499&authid=942
Interface
staff
Element selector
main
Missing selector
setup
workflow
teardown
Notes
Create a duplicate Author authority
Go to Authorities. Search the name of the duplicate authority. For the first result, click Actions button, click Merge. For the second result, click Actions button, click Merge.