Skip to content

Commit

Permalink
fix: Increase wait time EEA Screenshooter when saving preview image -…
Browse files Browse the repository at this point in the history
… refs #277935
  • Loading branch information
dobri1408 authored Oct 11, 2024
1 parent 3d9016c commit f9e5d01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cypress/e2e/block-tableau.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@ describe('Blocks Tests', () => {
afterEach(slateAfterEach);

it('Add Tableau block', () => {
cy.intercept('GET', `/**/*?expand*`, {
statusCode: 200,
}).as('content');
// when I add a maps block
cy.addNewBlock('tableau');

cy.get(
`.sidebar-container .field-wrapper-tableau_vis_url #field-tableau_vis_url`,
).type('/path/to/dashboard', { force: true });
cy.wait('@content');
cy.get('#toolbar-save').click({ force: true });
cy.intercept('GET', `/**/*?expand*`).as('content');
cy.wait('@content');
cy.url().should('eq', Cypress.config().baseUrl + '/cypress/my-page');
});
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/VisualizationWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const VisualizationWidget = (props) => {
'',
)}/cors-proxy/https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=${encodeURIComponent(
value.url,
)}&w=1920&h=1000&waitfor=4000`,
)}&w=1920&h=1000&waitfor=8000`,
)
.then((e) => e.blob())
.then((myBlob) => {
Expand Down

0 comments on commit f9e5d01

Please sign in to comment.