Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix running headed chrome tests with proxy. #755

Merged
merged 1 commit into from
Jan 5, 2018

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Dec 21, 2017

When we run headed tests on Chrome, we weren't invoking the proxy to serve tiles locally and skip serving fonts. This means that the tests were running against internet data sources, and therefore subject to the whims of connectivity and changes in OSM data.

Install Google fonts via an npm package and include them as local files for the examples and tutorials. This avoids having to fetch them each time and also allows the headless tests to have them with certainty.

Fixed the webpack public path for examples and tutorials.

When we run headed tests on Chrome, we weren't invoking the proxy to
serve tiles locally and skip serving fonts.  This means that the tests
were running against internet data sources, and therefore subject to the
whims of connectivity and changes in OSM data.

Install Google fonts via an npm package and include them as local files
for the examples and tutorials.  This avoids having to fetch them each
time and also allows the headless tests to have them with certainty.

Fixed the webpack public path for examples and tutorials.
flags: [
'--no-sandbox', // necessary to run tests in a docker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbeezley could you review the karma conf?

Copy link
Member

@aashish24 aashish24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manthey the changes looks reasonable to me but I am not completely familiar with some of these configurations. @jbeezley could you do a review as well?

@manthey manthey merged commit 9a6fe02 into master Jan 5, 2018
@manthey manthey deleted the fix-chrome-proxy-testing branch January 5, 2018 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants