Преглед на файлове

[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'],