Skip to content

Commit

Permalink
chore: try enabling check on iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Jul 26, 2024
1 parent 1fb90a3 commit 51be6c0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions cypress/e2e/responsive_dashboard/responsive_dashboard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { When, Then } from '@badeball/cypress-cucumber-preprocessor'
import { dimensionsModalSel } from '../../elements/dashboardFilter.js'
// import { gridItemSel, chartSel } from '../../elements/dashboardItem.js'
import { gridItemSel, chartSel } from '../../elements/dashboardItem.js'
import { titleInputSel } from '../../elements/editDashboard.js'
import {
dashboardTitleSel,
Expand Down Expand Up @@ -100,13 +100,10 @@ Then('the {string} dashboard displays in default view mode', (title) => {
})

cy.get(dashboardTitleSel).should('be.visible').and('contain', title)
// FIXME
// cy.get(`${gridItemSel}.VISUALIZATION`)
// .first()
// .getIframeBody()
// .find(chartSel, EXTENDED_TIMEOUT)
// .as('vis')
// cy.get('@vis').should('be.visible')

cy.get(`${gridItemSel}.VISUALIZATION`).first().getIframeBody().as('iframe')
cy.get('@iframe').find(chartSel, EXTENDED_TIMEOUT).as('vis')
cy.get('@vis').should('be.visible')
})

// Scenario: I change the url to 'edit' while in small screen
Expand Down

0 comments on commit 51be6c0

Please sign in to comment.