Job
No job planned.
Difficulty
Easy
Medium
Hard
Impossible with Cypress Studio
Cancel
Spec (updated on Fri Aug 15 08:22:15 2025)
describe("tools/qotd/deletequote", 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("deletequote", function () {
cy.visit("/cgi-bin/koha/tools/quotes.pl");
cy.waitForPageLoad();
cy.get(".delete-quote").click();
cy.wait_for_ajax();
cy.get(".modal-dialog").should('be.visible').screenshot("deletequote");
});
});
});
afterEach(function () {
Cypress.env('PADDING_BEFORE_SCREENSHOT', undefined);
if (this.currentTest.state === 'failed') {
Cypress.env("TEST_FAILED", true);
}
});
});
Spec data
Page
tools/quotes.pl
Interface
staff
Element selector
.modal-dialog
Missing selector
N
setup
workflow
click .delete-quote
wait_for_ajax
teardown
Notes
Cancel
Additional KTD data
Cancel
Test failure AssertionError: Timed out retrying after 10000ms: Expected to find element: `.delete-quote`, but never found it.
at Context.eval (webpack://koha/./cypress/integration/tools/qotd/deletequote.ts:18:19)