index.ts 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. // ***********************************************************
  2. // This example support/index.js is processed and
  3. // loaded automatically before your test files.
  4. //
  5. // This is a great place to put global configuration and
  6. // behavior that modifies Cypress.
  7. //
  8. // You can change the location of this file or turn off
  9. // automatically serving support files with the
  10. // 'supportFile' configuration option.
  11. //
  12. // You can read more here:
  13. // https://on.cypress.io/configuration
  14. // ***********************************************************
  15. // Import commands.js using ES2015 syntax:
  16. import './commands'
  17. // Alternatively you can use CommonJS syntax:
  18. // require('./commands')
  19. declare global {
  20. // eslint-disable-next-line @typescript-eslint/no-namespace
  21. namespace Cypress {
  22. interface Chainable {
  23. getByTestid(selector: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery<Element>>,
  24. login(username: string, password: string): Chainable<void>,
  25. collapseSidebar(isCollapsed: boolean): Chainable<void>,
  26. }
  27. }
  28. }