describe("admin/additional/smsopacoptions", 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("smsopacoptions", function () { cy.visit("/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=1&step=5"); /* FIXME - Invalid step Go to Patrons > select patron > edit Patron messaging preferences > click DROP-DOWN SMS provider */ cy.get("main").should('be.visible').screenshot("smsopacoptions"); }); }); }); afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.env("TEST_FAILED", true); } }); });
Go to Patrons > select patron > edit Patron messaging preferences > click DROP-DOWN SMS provider
Prerequisites: existing SMS providers, preference EnhancedMessagingPreferences=Allow. PLUS: screen is not different, with Save button in different location.