index.d.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2018-2022 Elyra Authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. declare namespace Cypress {
  17. // eslint-disable-next-line @typescript-eslint/interface-name-prefix
  18. interface Chainable {
  19. installRuntimeConfig(options?: {
  20. type?: 'kfp' | 'airflow';
  21. }): Chainable<void>;
  22. createRuntimeConfig(options?: { type: 'kfp' | 'airflow' }): Chainable<void>;
  23. createExampleComponentCatalog(options?: {
  24. type: 'kfp' | 'airflow';
  25. }): Chainable<void>;
  26. deleteFile(fileName: string): Chainable<void>;
  27. openDirectory(fileName: string): Chainable<void>;
  28. addFileToPipeline(fileName: string): Chainable<void>;
  29. dragAndDropFileToPipeline(fileName: string): Chainable<void>;
  30. createPipeline(options?: {
  31. name?: string;
  32. type?: 'kfp' | 'airflow' | 'generic';
  33. }): Chainable<void>;
  34. savePipeline(): Chainable<void>;
  35. openFile(fileName: string): Chainable<void>;
  36. bootstrapFile(fileName: string): Chainable<void>;
  37. resetJupyterLab(): Chainable<void>;
  38. checkTabMenuOptions(fileType: string): Chainable<void>;
  39. closeTab(index: number): Chainable<void>;
  40. createNewScriptEditor(language: string): Chainable<void>;
  41. }
  42. }