We can use the new generated client to stay up to date and upgrade packages that depends on docsearch. --------- Co-authored-by: shortcuts <vannicattec@gmail.com>
42 lines
896 B
TypeScript
42 lines
896 B
TypeScript
/// <reference types="cypress" />
|
|
|
|
declare namespace Cypress {
|
|
interface Chainable {
|
|
/**
|
|
* Ensures the modal is visible and focused.
|
|
*/
|
|
modalIsVisibleAndFocused: () => void;
|
|
/**
|
|
* Ensures the modal not visible.
|
|
*/
|
|
modalIsNotVisible: () => void;
|
|
/**
|
|
* Toggles the dark mode on the preview website.
|
|
*/
|
|
darkmode: () => void;
|
|
/**
|
|
* Wait for the page to load.
|
|
*/
|
|
waitLoad: () => void;
|
|
/**
|
|
* Opens the DocSearch modal.
|
|
*/
|
|
openModal: () => void;
|
|
/**
|
|
* Closes the DocSearch modal.
|
|
*/
|
|
closeModal: () => void;
|
|
/**
|
|
* Search for a given query.
|
|
*/
|
|
search: (query: string) => void;
|
|
/**
|
|
* Types a query that returns results.
|
|
*/
|
|
typeQueryMatching: () => void;
|
|
/**
|
|
* Types a query that returns no results.
|
|
*/
|
|
typeQueryNotMatching: () => void;
|
|
}
|
|
}
|