diff --git a/t/cypress/integration/KohaTable/Holdings_spec.ts b/t/cypress/integration/KohaTable/Holdings_spec.ts index 043a3468bc..2b39c127b7 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 () { + 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 @@ -458,16 +455,13 @@ describe("catalogue/detail/holdings_table without items", () => { }); }); - afterEach( - () => - function () { + 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";