UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Fix Cluster Auditor test for Grafana SKIP UPGRADE

Merged Micah Nagel requested to merge dashboard-fix into main
4 files
+ 17
2
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -12,12 +12,23 @@ Cypress.on('uncaught:exception', (err, runnable) => {
return false
})
function expandMenu() {
cy.get('.pointer > button[id^="collapse-button-"]').invoke('attr', 'aria-expanded').then(($expanded) => {
if ($expanded === 'false') {
cy.get('.pointer > button[id^="collapse-button-"]').click({multiple: true})
}
})
}
function dashboard_menu () {
cy.task('log','Loading the dashboard menu...')
cy.wait(500)
cy.visit(`${Cypress.env('grafana_url')}/dashboards`)
cy.get('.page-header__title').contains('Dashboards')
cy.task('log','Dashboard menu is loaded')
// Wait for all buttons to load
cy.wait(1000)
expandMenu()
}
function enter_dashboard (dashname) {
Loading