describe("admin/globalprefs/OPACPatronDetails-approve", 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("OPACPatronDetails-approve", function () {
cy.visit("/cgi-bin/koha/members/members-update.pl");
cy.waitForPageLoad();
cy.get("main").should('be.visible').screenshot("OPACPatronDetails-approve");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
members/members-update.pl
Interface
staff
Element selector
main
Missing selector
N
setup
workflow
teardown
Notes
Needs both OPAC and staff interface.
Set sys pref OPACPatronDetails to allow, go to OPAC, log into Patron Account- go to Patron Details- make a change to details- submit
We probably can't use the "sql insert into" with borrower_modifications, because there is a primary key "verification_token" needed.