mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
13 lines
363 B
TypeScript
13 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')
|
||
|
)
|
||
|
}
|