Job
No job planned.
Difficulty
Hard
Easy
Medium
Hard
Impossible with Cypress Studio
Cancel
Spec (updated on Fri Sep 12 06:49:55 2025)
describe("admin/additional/smsopacoptions", function () {
const languages = ['en', 'es-ES', 'fr-FR', 'de-DE', 'el-GR', 'hi', '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.query("INSERT IGNORE INTO sms_providers (name, domain) VALUES (\"Verizon\", \"vtext.com\"), (\"T-Mobile\", \"tmomail.net\")")
cy.loginOpac();
/* No specific padding defined */
cy.set_cookie_lang(lang);
});
it("smsopacoptions", function () {
cy.visitOpac("/cgi-bin/koha/opac-messaging.pl");
cy.waitForPageLoad();
cy.get(".main").should('be.visible').screenshot("smsopacoptions");
});
});
});
afterEach(function () {
cy.query("DELETE FROM sms_providers WHERE name IN (\"Verizon\", \"T-Mobile\")")
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
opac-messaging.pl
Interface
opac
Log in
Yes
Element selector
.main
Missing selector
N
setup
sql INSERT IGNORE INTO sms_providers (name, domain) VALUES ("Verizon", "vtext.com"), ("T-Mobile", "tmomail.net")
workflow
teardown
sql DELETE FROM sms_providers WHERE name IN ("Verizon", "T-Mobile")
Notes
Prerequisites: preference EnhancedMessagingPreferencesOPAC=Allow, preference SMSSendDriver=Email, existing SMS providers, be logged in on the OPAC
04-08-2025: I don't think we can show the drop-down menu unfolded
Cancel
Additional KTD data
Cancel