Smoke tests for the Mapbox Studio Classic snap
First, build and install the snap:
$ sudo apt install git snapcraft
$ git clone https://github.com/elopio/mapbox-studio-classic
$ cd mapbox-studio-classic
$ git checkout snapcraft
$ snapcraft
$ sudo snap install *.snap --force-dangerous
Start the server:
$ mapbox-studio-classic.server
The following steps require a Mapbox account.
Connect to the Mapbox account:
1. Open the browser at http://localhost:3000
2. Click the `Connect` button.
3. Enter your `Username` and `Password`.
4. Click the `Sign in` button.
5. In the `Authorize` page, click the `Allow` button.
* Check that you are back in your local Mapbox Studio, with an `Access token authorized to use the Mapbox API`.
Create a new project:
1. In the `New Style or Source` page, scroll to the bottom of the page, and click the `Create` button.
The app can't be run as a daemon because of https://bugs.launchpad.net/snappy/+bug/1627893
When I try to create a map, it gets stuck consuming all my cpu and memory. Eventually, it dies with:
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x3137971b4629
1: CALL_NON_FUNCTION(aka CALL_NON_FUNCTION) [native runtime.js:387] [pc=0x11ab0faf9505](this=0x3137971041b9 <undefined)
2: arguments adaptor frame: 1->0
3: sortkeys [/snap/mapbox-studio-classic/x1/lib/node_modules/mapbox-studio/lib/tm.js:271] [pc=0x11ab0faf9155](this=0x152a9b621371 <an Object with map 0x3497c5bd3e19>,obj=0x31379713f011 <String[1]: g)
4: /* anonymous */(aka /...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Aborted (core dumped)