2022-06-08 03:39:09 -04:00
|
|
|
import '@testing-library/cypress/add-commands'
|
2023-03-06 07:50:17 -05:00
|
|
|
import {
|
|
|
|
interceptCompile,
|
|
|
|
waitForCompile,
|
|
|
|
interceptDeferredCompile,
|
|
|
|
} from './compile'
|
2022-06-08 03:39:09 -04:00
|
|
|
import { interceptEvents } from './events'
|
2023-03-13 07:44:17 -04:00
|
|
|
import { interceptAsync } from './intercept-async'
|
2023-05-17 03:48:21 -04:00
|
|
|
import { interceptFileUpload } from './upload'
|
|
|
|
import { interceptProjectListing } from './project-list'
|
|
|
|
import { interceptLinkedFile } from './linked-file'
|
2023-08-29 06:14:04 -04:00
|
|
|
import { interceptMathJax } from './mathjax'
|
2024-06-05 04:33:11 -04:00
|
|
|
import { interceptMetadata } from './metadata'
|
2024-07-10 07:23:09 -04:00
|
|
|
import { interceptTutorials } from './tutorials'
|
2022-06-08 03:39:09 -04:00
|
|
|
|
|
|
|
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-namespace
|
|
|
|
declare global {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace,no-unused-vars
|
|
|
|
namespace Cypress {
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
interface Chainable {
|
2023-03-13 07:44:17 -04:00
|
|
|
interceptAsync: typeof interceptAsync
|
2022-06-08 03:39:09 -04:00
|
|
|
interceptCompile: typeof interceptCompile
|
|
|
|
interceptEvents: typeof interceptEvents
|
2024-06-05 04:33:11 -04:00
|
|
|
interceptMetadata: typeof interceptMetadata
|
2023-03-06 07:50:17 -05:00
|
|
|
waitForCompile: typeof waitForCompile
|
|
|
|
interceptDeferredCompile: typeof interceptDeferredCompile
|
2023-05-17 03:48:21 -04:00
|
|
|
interceptFileUpload: typeof interceptFileUpload
|
|
|
|
interceptProjectListing: typeof interceptProjectListing
|
|
|
|
interceptLinkedFile: typeof interceptLinkedFile
|
2023-08-29 06:14:04 -04:00
|
|
|
interceptMathJax: typeof interceptMathJax
|
2024-07-10 07:23:09 -04:00
|
|
|
interceptTutorials: typeof interceptTutorials
|
2022-06-08 03:39:09 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-13 07:44:17 -04:00
|
|
|
Cypress.Commands.add('interceptAsync', interceptAsync)
|
2022-06-08 03:39:09 -04:00
|
|
|
Cypress.Commands.add('interceptCompile', interceptCompile)
|
|
|
|
Cypress.Commands.add('interceptEvents', interceptEvents)
|
2024-06-05 04:33:11 -04:00
|
|
|
Cypress.Commands.add('interceptMetadata', interceptMetadata)
|
2023-03-06 07:50:17 -05:00
|
|
|
Cypress.Commands.add('waitForCompile', waitForCompile)
|
|
|
|
Cypress.Commands.add('interceptDeferredCompile', interceptDeferredCompile)
|
2023-05-17 03:48:21 -04:00
|
|
|
Cypress.Commands.add('interceptFileUpload', interceptFileUpload)
|
|
|
|
Cypress.Commands.add('interceptProjectListing', interceptProjectListing)
|
|
|
|
Cypress.Commands.add('interceptLinkedFile', interceptLinkedFile)
|
2023-08-29 06:14:04 -04:00
|
|
|
Cypress.Commands.add('interceptMathJax', interceptMathJax)
|
2024-07-10 07:23:09 -04:00
|
|
|
Cypress.Commands.add('interceptTutorials', interceptTutorials)
|