Просмотр исходного кода

Merge pull request #9981 from overleaf/ae-cypress-tweaks

Use more built-in assertions in Cypress tests

GitOrigin-RevId: e89a324cf4357383b484d0bebaf43862c1d21329
Alf Eaton 4 лет назад
Родитель
Сommit
27686264f4

+ 1 - 1
services/web/test/frontend/components/pdf-preview/pdf-logs-entries.spec.tsx

@@ -28,7 +28,7 @@ describe('<PdfLogsEntries/>', function () {
         findEntityByPath: cy.stub().as('findEntityByPath').returns(fakeEntity),
       },
       editorManager: {
-        openDoc: cy.stub().as('openDoc'),
+        openDoc: cy.spy().as('openDoc'),
       },
     }