diff --git a/t/cypress/integration/KohaTable/Holdings_spec.ts b/t/cypress/integration/KohaTable/Holdings_spec.ts index f39e51e0e7..8011d0b8b1 100644 --- a/t/cypress/integration/KohaTable/Holdings_spec.ts +++ b/t/cypress/integration/KohaTable/Holdings_spec.ts @@ -109,16 +109,13 @@ describe("catalogue/detail/holdings_table with items", () => { }); }); - afterEach( - () => - function () { - cleanup(); - cy.set_syspref( - "AlwaysShowHoldingsTableFilters", - this.syspref_AlwaysShowHoldingsTableFilters - ); - } - ); + afterEach(function () { + cleanup(); + cy.set_syspref( + "AlwaysShowHoldingsTableFilters", + this.syspref_AlwaysShowHoldingsTableFilters + ); + }); it("Correctly init the table", function () { // Do not use `() => {` or this.biblio_id won't be retrieved @@ -502,16 +499,13 @@ describe("catalogue/detail/holdings_table without items", () => { }); }); - afterEach( - () => - function () { - cleanup(); - cy.set_syspref( - "AlwaysShowHoldingsTableFilters", - this.syspref_AlwaysShowHoldingsTableFilters - ); - } - ); + afterEach(function () { + cleanup(); + cy.set_syspref( + "AlwaysShowHoldingsTableFilters", + this.syspref_AlwaysShowHoldingsTableFilters + ); + }); it("Do not display the table", function () { // Do not use `() => {` or this.biblio_id won't be retrieved diff --git a/t/cypress/integration/KohaTable/PatronSearch_spec.ts b/t/cypress/integration/KohaTable/PatronSearch_spec.ts index b706f1eb80..a9cc064f40 100644 --- a/t/cypress/integration/KohaTable/PatronSearch_spec.ts +++ b/t/cypress/integration/KohaTable/PatronSearch_spec.ts @@ -26,16 +26,13 @@ describe("ExtendedPatronAttributes", () => { }); }); - afterEach( - () => - function () { - cleanup(); - cy.set_syspref( - "ExtendedPatronAttributes", - this.syspref_ExtendedPatronAttributes - ); - } - ); + afterEach(function () { + cleanup(); + cy.set_syspref( + "ExtendedPatronAttributes", + this.syspref_ExtendedPatronAttributes + ); + }); const table_id = "memberresultst";