From d5cb3222e0a316d2627cade3d2534942264b24ac Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Wed, 29 Nov 2023 16:18:41 +0200 Subject: [PATCH] update cypress --- cypress/e2e/block-tableau.cy.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cypress/e2e/block-tableau.cy.js b/cypress/e2e/block-tableau.cy.js index 91bae79..2f944ef 100644 --- a/cypress/e2e/block-tableau.cy.js +++ b/cypress/e2e/block-tableau.cy.js @@ -30,16 +30,11 @@ describe('Blocks Tests', () => { // when I add a maps block cy.addNewBlock('tableau'); - cy.get(`.sidebar-container .field-wrapper-url #field-url`).type( - 'https://tableau-public.discomap.eea.europa.eu/views/GHGProjections/Dashboard1&:jsdebug=n', - ); + cy.get( + `.sidebar-container .field-wrapper-tableau_vis_url #field-tableau_vis_url`, + ).type('/path/to/dashboard'); cy.get('#toolbar-save').click(); cy.wait('@content'); cy.url().should('eq', Cypress.config().baseUrl + '/cypress/my-page'); - - // then the page view should contain the maps block - cy.get('#page-document iframe') - .should('have.attr', 'src') - .and('match', /\/\/tableau-public.discomap.eea.europa.eu\//); }); });