index.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. import './screenshot'
  18. // Alternatively you can use CommonJS syntax:
  19. // require('./commands')
  20. declare global {
  21. // eslint-disable-next-line @typescript-eslint/no-namespace
  22. namespace Cypress {
  23. interface Chainable {
  24. getByTestid(selector: string, options?: Partial<Loggable & Timeoutable & Withinable & Shadow>): Chainable<JQuery<Element>>,
  25. login(username: string, password: string): Chainable<void>,
  26. collapseSidebar(isCollapsed: boolean): Chainable<void>,
  27. }
  28. }
  29. }