Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cypress/component/VisualTest.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-alert, no-console */
const ERROR_TOLERANCE = 0.00384;
const ERROR_TOLERANCE = parseFloat(Cypress.env('ERROR_TOLERANCE'));
// Ref: flatmap-viewer/src/layers/styling.ts
const STROKE_INTERPOLATION = [
'interpolate',
Expand Down Expand Up @@ -104,7 +104,7 @@ describe('MultiFlatmapVuer Screenshot Comparison', () => {

// Test with saved screenshot from fixture
cy.get('@viewerCanvas').compareSnapshot('test-canvas').then(comparisonResults => {
expect(comparisonResults.percentage, 'Viewer map should match test-canvas.png exactly').to.equal(0);
expect(comparisonResults.percentage, 'Viewer map should be almost identical.').to.be.lessThan(ERROR_TOLERANCE);
});

// NOTE: disable base map comparison for now
Expand Down
2 changes: 1 addition & 1 deletion src/services/flatmapLoader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* a single source for the flatmap-viewer library import
*/
import * as flatmap from 'https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.2/+esm';
import * as flatmap from 'https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.4.3/+esm';

export default flatmap;
Loading