From b1d6770f1c488b4fa8b58bb7481cd62c2045dbf8 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 4 Aug 2023 08:35:17 +0100 Subject: [PATCH] [cypress] Avoid logging stubbed Angular events (#13983) GitOrigin-RevId: 7268822768aaeeb54c2c42d854d73dcecc57016d --- .../frontend/features/source-editor/helpers/mock-scope.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/test/frontend/features/source-editor/helpers/mock-scope.ts b/services/web/test/frontend/features/source-editor/helpers/mock-scope.ts index be672ed874..f4d9fa6a19 100644 --- a/services/web/test/frontend/features/source-editor/helpers/mock-scope.ts +++ b/services/web/test/frontend/features/source-editor/helpers/mock-scope.ts @@ -90,9 +90,9 @@ export const mockScope = (content?: string) => { refreshResolvedCommentsDropdown: cy.stub(() => sleep(1000)), onlineUserCursorHighlights: {}, permissionsLevel: 'owner', - $on: cy.stub(), - $broadcast: cy.stub(), - $emit: cy.stub(), + $on: cy.stub().log(false), + $broadcast: cy.stub().log(false), + $emit: cy.stub().log(false), $root: { _references: { keys: ['foo'],