diff --git a/tasks/noci_test.sh b/tasks/noci_test.sh index 4a59e8c8960..cbc2a36e158 100755 --- a/tasks/noci_test.sh +++ b/tasks/noci_test.sh @@ -30,7 +30,7 @@ test_image () { $root/../orca/bin/orca.js graph \ $root/test/image/mocks/mapbox_* \ --plotly $root/build/plotly.js \ - --mapbox-access-token "pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ" \ + --mapbox-access-token "pk.eyJ1IjoicGxvdGx5LWpzLXRlc3RzIiwiYSI6ImNrNG9meTJmOTAxa3UzZm10dWdteDQ2eWMifQ.2REjOFyIrleMqwS8H8y1-A" \ --output-dir $root/test/image/baselines/ \ --verbose || EXIT_STATE=$? } diff --git a/tasks/util/constants.js b/tasks/util/constants.js index 85dbf96d999..3fb01da2428 100644 --- a/tasks/util/constants.js +++ b/tasks/util/constants.js @@ -83,7 +83,7 @@ module.exports = { // this mapbox access token is 'public', no need to hide it // more info: https://www.mapbox.com/help/define-access-token/ - mapboxAccessToken: 'pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ', + mapboxAccessToken: 'pk.eyJ1IjoicGxvdGx5LWpzLXRlc3RzIiwiYSI6ImNrNG9meTJmOTAxa3UzZm10dWdteDQ2eWMifQ.2REjOFyIrleMqwS8H8y1-A', pathToCredentials: path.join(pathToBuild, 'credentials.json'), testContainerImage: 'plotly/testbed:latest', diff --git a/test/image/baselines/mapbox_custom-style.png b/test/image/baselines/mapbox_custom-style.png index bea49f3bad9..ce53aa8fa57 100644 Binary files a/test/image/baselines/mapbox_custom-style.png and b/test/image/baselines/mapbox_custom-style.png differ diff --git a/test/image/mocks/mapbox_custom-style.json b/test/image/mocks/mapbox_custom-style.json index 99f087af0cd..58fb4a38322 100644 --- a/test/image/mocks/mapbox_custom-style.json +++ b/test/image/mocks/mapbox_custom-style.json @@ -48,7 +48,7 @@ ], "layout": { "mapbox": { - "style": "mapbox://styles/etpinard/cip93fm98000sbmnuednknloo", + "style": "mapbox://styles/plotly-js-tests/ck4og36lx0vnj1cpdl8y0cr8m", "center": { "lon": -73.60287319770295, "lat": 45.50110152988742 diff --git a/test/jasmine/tests/mapbox_test.js b/test/jasmine/tests/mapbox_test.js index 9dcb3e82304..75d78fc738b 100644 --- a/test/jasmine/tests/mapbox_test.js +++ b/test/jasmine/tests/mapbox_test.js @@ -410,7 +410,7 @@ describe('mapbox credentials', function() { }], { mapbox: { accesstoken: MAPBOX_ACCESS_TOKEN, - style: 'mapbox://styles/etpinard/cip93fm98000sbmnuednknloo' + style: 'mapbox://styles/plotly-js-tests/ck4og36lx0vnj1cpdl8y0cr8m' } }).catch(function() { cnt++; @@ -1329,13 +1329,13 @@ describe('@noCI, mapbox plots', function() { expect([evtData['mapbox.center'].lon, evtData['mapbox.center'].lat]).toBeCloseToArray(center); expect(evtData['mapbox.zoom']).toBeCloseTo(zoom); - expect(evtData['mapbox._derived']).toEqual({ - coordinates: [ - [lon0, lat1], - [lon1, lat1], - [lon1, lat0], - [lon0, lat0] - ]}); + expect(Object.keys(evtData['mapbox._derived'])).toEqual(['coordinates']); + expect(evtData['mapbox._derived'].coordinates).toBeCloseTo2DArray([ + [lon0, lat1], + [lon1, lat1], + [lon1, lat0], + [lon0, lat0] + ], -0.1); } _assertLayout([-4.710, 19.475], 1.234);