mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 13:42:06 -05:00
988fc57574
[web] Add cypress tests for figure modal GitOrigin-RevId: 4debae1c665a68fd7bfa9f0dcfc150bec38a7c64
12 lines
363 B
TypeScript
12 lines
363 B
TypeScript
import { HttpRequestInterceptor } from 'cypress/types/net-stubbing'
|
|
|
|
export const interceptLinkedFile = () => {
|
|
cy.intercept(
|
|
{ method: 'POST', url: '/project/*/linked_file' },
|
|
cy
|
|
.spy((req: Parameters<HttpRequestInterceptor>[0]) => {
|
|
req.reply({ statusCode: 200, body: { success: true } })
|
|
})
|
|
.as('linked-file-request')
|
|
)
|
|
}
|