Browse Source

test(cypress): base share, gql - close client window before iFrame verification

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/805/head
Raju Udava 3 years ago
parent
commit
4a0796220b
  1. 5
      scripts/cypress/integration/common/6g_base_share.js

5
scripts/cypress/integration/common/6g_base_share.js

@ -92,6 +92,11 @@ style="background: transparent; "></iframe>
// wait for iFrame to load // wait for iFrame to load
cy.frameLoaded('.nc-embed') cy.frameLoaded('.nc-embed')
// for GQL- additionally close GQL Client window
if (type === 'graphql') {
cy.iframe().find(`[title="Graphql Client"] > button.mdi-close`).click()
}
// validation for base menu opitons // validation for base menu opitons
cy.iframe().find('.nc-project-tree').should('exist') cy.iframe().find('.nc-project-tree').should('exist')
cy.iframe().find('.nc-fields-menu-btn').should('exist') cy.iframe().find('.nc-fields-menu-btn').should('exist')

Loading…
Cancel
Save