Skip to content

Commit

Permalink
update cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Nov 29, 2023
1 parent 62f445d commit d5cb322
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cypress/e2e/block-tableau.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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\//);
});
});

0 comments on commit d5cb322

Please sign in to comment.