소스 검색

[cypress] Avoid logging stubbed Angular events (#13983)

GitOrigin-RevId: 7268822768aaeeb54c2c42d854d73dcecc57016d
Alf Eaton 3 년 전
부모
커밋
b1d6770f1c
1개의 변경된 파일과 3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      services/web/test/frontend/features/source-editor/helpers/mock-scope.ts

+ 3 - 3
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'],