mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 15:12:47 +00: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')
|
||
|
)
|
||
|
}
|