#34053: JS tests don't work without an internet connection
---------------------------------------------+------------------------
               Reporter:  Hugo Herter        |          Owner:  nobody
                   Type:  Bug                |         Status:  new
              Component:  Testing framework  |        Version:  dev
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  1
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 Running the Javascript tests requires an internet connection to
 https://cdnjs.cloudflare.com .

 This makes the tests dependent on an extra third party, provides that
 third party with the IP address of developers and test runners, and
 prevents developers from running the tests without a connection to
 Cloudflare.

 The relevant line is in `js_tests/tests.html`:

   <script
 src='https://cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js'></script>

 == How to reproduce

 1. Install the dependencies using npm

   git clone https://github.com/django/django.git
   cd django/
   npm install

 2. Serve the page via a web server and open in in a browser

   python3 -m http.server --bind 127.0.0.1

 Open http://localhost:8000 with the network inspector open.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34053>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701837469908d-8303cc6c-373b-4104-a682-f1321591e1d5-000000%40eu-central-1.amazonses.com.

Reply via email to