Uploaded image for project: 'Red Hat OpenShift AI Engineering'
  1. Red Hat OpenShift AI Engineering
  2. RHOAIENG-3808

Create cypress test for Workbench

XMLWordPrintable

    • Dashboard - Quality-2, Dashboard - Quality-3
    • Testable

      Description

      • Validate the empty state is displayed when no workbench is present.
      • Validate that clicking on the Create workbench button will navigate to a new page to create a workbench.
      • Validate that clicking on the kebab menu Edit option will navigate to the new page to edit a workbench.
      • Validate kebab menu delete option will open a modal.
      • Validate that sorting based on Name and status works correctly.
      • Validate workbench list in table with correct data in each column. 
      • When the workbench is in running state, validate that clicking on switch toggle will open modal to stop workbench.
      • Validate open link is disabled, when workbench is stopped and enabled when workbench is running.
      • When you expand the workbench created, Validate that clicking on Add storage will open a modal.
      • Validate that updating invalid workbench will navigate to the new page with an error message.

      Network assertion

      • Assert the method is correct - eg DELETE for deleting a k8s resource
      • Assert the query params are correct - - eg dryRun followed by non-dry run if we mock respond successfully to the dryRun request
      • Assert the request body content is as expected.
      • Ensure that network assertion is made for workbench creation.
      • Ensure that network assertion is made for edit workbench.
      • Ensure that network assertion is made for workbench deletion.
      • Ensure that network assertion is made, when the workbench starts/stops.
      • Ensure that network assertion is made for adding storage.

      URL

      To Create:  /projects/<namespace>/spawner

      To Edit:   /projects/<namespace>/spawner/<workenchName>

       

      see attached screenshot 

            pnaik@redhat.com Purva Naik
            ppadti@redhat.com Pushpa Padti
            RHOAI Dashboard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: