1
0
Fork 0
docsearch/cypress/support/commands.d.ts
Pierre Millot 93578a4de0
fix: upgrade algoliasearch to v5 (#2326)
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>
2024-10-30 15:46:38 +01:00

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;
}
}