launcher.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. describe('Elyra launcher is in use', () => {
  17. beforeEach(() => {
  18. cy.resetJupyterLab();
  19. });
  20. it('should have Elyra extensions', () => {
  21. // cy.get('.jp-ToolbarButtonComponent[title="New Launcher"]').click({
  22. // force: true
  23. // });
  24. // Jupyter notebook default kernel is available
  25. cy.get(
  26. '.jp-LauncherCard[data-category="Notebook"][title*="Python 3"]:visible'
  27. );
  28. // Generic Pipeline editor extension is available
  29. cy.get(
  30. '.jp-LauncherCard[data-category="Elyra"][title="Generic Pipeline Editor"]:visible'
  31. );
  32. // Two specific runtime pipeline editor extension is available
  33. cy.get(
  34. '.jp-LauncherCard[data-category="Elyra"][title="Apache Airflow Pipeline Editor"]:visible'
  35. );
  36. cy.get(
  37. '.jp-LauncherCard[data-category="Elyra"][title="Kubeflow Pipelines Pipeline Editor"]:visible'
  38. );
  39. // Script editor extension is available
  40. cy.get(
  41. '.jp-LauncherCard[data-category="Elyra"][title="Create a new Python Editor"]:visible'
  42. );
  43. cy.get(
  44. '.jp-LauncherCard[data-category="Elyra"][title="Create a new R Editor"]:visible'
  45. );
  46. // Documentation link is available
  47. cy.get(
  48. '.jp-LauncherCard[data-category="Elyra"][title="Documentation"]:visible'
  49. );
  50. });
  51. });