describe("cataloging/authmergechoice", function () {
const languages = ['en', 'es-ES', 'fr-FR'];
languages.forEach((lang) => {
describe(`in ${lang}`, () => {
beforeEach(function(){
// If previous test failed, skip this one
if (Cypress.env("TEST_FAILED")) {
this.skip();
}
cy.login();
cy.set_cookie_lang(lang);
});
it("authmergechoice", function () {
cy.visit("/cgi-bin/koha/authorities/merge.pl?authid=499&authid=942");
cy.get("main").should('be.visible').screenshot("authmergechoice");
});
});
});
afterEach(function () {
if (this.currentTest.state === 'failed') {
Cypress.env("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.