mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -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')
|
||
|
)
|
||
|
}
|