-
Notifications
You must be signed in to change notification settings - Fork 40
Testing a dev branch on iPhone, Internet Explorer Windows, Android
Robert edited this page Jun 11, 2019
·
7 revisions
To test a development branch on iPhone, Windows/Internet Explorer, Android or any other browser/device combination unavailable on your Mac, you can either: 1) Point your device/browser to your development server or 2) Deploy branch to feature space and test there.
- Checkout the branch you want to test.
-
Temporarily add
ALLOWED_HOSTS = ['*']
tofec/fec/settings/dev.py
- Switch to a Wi-Fi network (that isn't the internal network).
- Get the IP address of your dev server by
System Preferences
>Network
> Choose the Wi-Fi network on the left > ClickAdvanced…
in the lower right > ChooseTCP/IP
tab. TheIPv4 Address
is your dev server's IP. ./manage.py runserver 0.0.0.0:8000
- Make sure your test and development devices are on the same network.
- Visit the IP address at port :8000 on the device/browser.
Remove ALLOWED_HOSTS
from dev.py
before pushing any changes.
Another alternative is to push a test version of this branch to the feature space and visit it on the device/browser you want to test.
- BEFORE PUSHING TO FEATURE SPACE, send a message in Slack to @here, to make sure someone else does not have something already deployed to the feature space that they are currently using for testing.
- Create a test copy of the branch you want to test.
- Uncomment line #79 of /tasks.py and edit the branch name in that line to your testing branch.
git push -u origin [your testing branch name]
- Wait for CircleCI to complete the build successfully .
- Visit https://fec-feature-cms.app.cloud.gov/ on the device/browser combination you want to test.
**Note:** Internet Explorer 11 may behave differently depending on the devices Windows build-pack and other configurations, so it is important to test several different devices. For example, the configuration of FEC-issued MS Surface tablets has shown to have IE 11 issues that other Windows 7/10 environments might not.