Browse Source

Use Emulation.setFocusEmulationEnabled in Cypress (#33787)

GitOrigin-RevId: d3b9ba1b2362bdb23dbf8282514c972c52c83fec
Alf Eaton 2 months ago
parent
commit
78bea8d574

+ 9 - 0
services/web/test/frontend/features/source-editor/components/codemirror-editor-context-menu.spec.tsx

@@ -83,6 +83,15 @@ const grantClipboardPermissions = () => {
       },
     })
   )
+
+  cy.wrap(
+    Cypress.automation('remote:debugger:protocol', {
+      command: 'Emulation.setFocusEmulationEnabled',
+      params: {
+        enabled: true,
+      },
+    })
+  )
 }
 
 describe('editor context menu', { scrollBehavior: false }, function () {