Skip to content

chore(cypress): update cypress tests to handle pf6 elements#909

Open
aptmac wants to merge 1 commit into
cryostatio:mainfrom
aptmac:fix-cypress-pf6
Open

chore(cypress): update cypress tests to handle pf6 elements#909
aptmac wants to merge 1 commit into
cryostatio:mainfrom
aptmac:fix-cypress-pf6

Conversation

@aptmac

@aptmac aptmac commented Apr 28, 2026

Copy link
Copy Markdown
Member

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Fixes: #908

Description of the change:

Updates the Cypress tests to check for PF6 elements.

Also clicks off the guided tour that was added in 4.19.

Motivation for the change:

Lets the Cypress tests run again, useful for testing PRs such as #895

How to manually test:

  1. yarn run start-console, yarn run start, and have a Cryostat installed plus some target
  2. yarn run cypress:headed or yarn run cypress:headless

@andrewazores

Copy link
Copy Markdown
Member

Seems to be partially failing for me in its current state, but it's also possible I just don't have everything set up quite right:

  Running:  dashboard-page.cy.ts                                                            (2 of 2)


  Dashboard page tests
    ✓ should have the url /cryostat/
    1) should refresh the metrics charts after 10 seconds
    2) should refresh the d-solo charts after 10 seconds


  1 passing (2m)
  2 failing

  1) Dashboard page tests
       should refresh the metrics charts after 10 seconds:
     AssertionError: Timed out retrying after 30000ms: Expected to find element: `button[tabindex="0"]`, but never found it. Queried from:

              > cy.get(div[data-ouia-component-type="PF6/Dropdown"])
      at Context.eval (webpack:///./tests/dashboard-page.cy.ts:52:7)

  2) Dashboard page tests
       should refresh the d-solo charts after 10 seconds:
     AssertionError: Timed out retrying after 30000ms: Expected to find element: `button[tabindex="0"]`, but never found it. Queried from:

              > cy.get(div[data-ouia-component-type="PF6/Dropdown"])
      at Context.eval (webpack:///./tests/dashboard-page.cy.ts:71:7)

@andrewazores andrewazores self-requested a review May 5, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Update cypress tests to handle pf6 elements

2 participants