describe("admin/globalprefs/IntranetNav", 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.query("UPDATE systempreferences SET value = '
CypressError: `cy.screenshot()` only works for a single element. You attempted to screenshot 2 elements.
https://on.cypress.io/screenshot
at screenshot (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:134836:70)
at originalFn (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:111055:30)
at overridden.fn (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:111060:21)
at wrapped (http://kohadev-intra.mydnsname.org:8081/__cypress/runner/cypress_runner.js:138387:19)
From Your Spec Code:
at Context.eval (webpack://koha/./cypress/integration/admin/globalprefs/IntranetNav.ts:19:55)