This is a known bug in Alfresco seeing from this ref ALF-9970.
A quick solution is to edit the file src/test/resources/alfresco/web-extension/share-config-custom.xml
in your project by changing <mode>development</mode>
to <mode>production</mode>
.
A more detailed explaination for this bug is found here: