Skip to content

Instantly share code, notes, and snippets.

@justinpotts
justinpotts / conftest.py
Created July 20, 2016 15:47
Override Firefox path with downloading a specific Firefox version
@pytest.yield_fixture(scope='session')
def firefox_path(tmpdir_factory, firefox_path):
if firefox_path is not None:
yield firefox_path
else:
tmp_dir = tmpdir_factory.mktemp('firefox')
scraper = FactoryScraper('release', version='latest-beta', destination=str(tmp_dir))
filename = scraper.download()
path = mozinstall.install(filename, str(tmp_dir))
yield mozinstall.get_binary(path, 'Firefox')
--For the first time only:--
# Add github repo to your local dev instance
git remote add upstream https://github.com/justinpotts/pattr.git
———————————————————————————
--Daily Workflow--
# ensure you're working on master
@justinpotts
justinpotts / gist:7f309fd6386671243b44
Last active August 29, 2015 14:23
Web QA Bootcamp Structure
Web QA Bootcamp Documentation
Structure:
Welcome message
Joining IRC
Joining mailing list
Projects to choose from
List of projects...
Automation
@justinpotts
justinpotts / ADB Not Found Solution
Last active August 29, 2015 14:13
Firefox OS Device - ADB Devices Not Found Solution
Check the System Report (Mac) or the Device Manager (Win) or lsusb (linux) to see if the device is seen on the USB port
If the device cannot be found under USB ports, it is a USB issue. Not ADB or FxOS
Otherwise, if it is recognized by the computer:
Make sure this file exists: ~/.android/adb_usb.ini
Check to see this is somewhere in the file: 0x05c6
If it's not, type this into the terminal: echo 0x05c6 >> ~/.android/adb_usb.ini
Run this: adb kill-server
Run this: adb devices
If the FxOS device is still missing, continue on.
@justinpotts
justinpotts / githubworkflowtemplate
Last active August 29, 2015 14:01
MozWebQA Github Workflow Template
--For the first time only:--
# Add mozilla's github repo to your local dev instance
git remote add upstream https://github.com/mozilla/mozillians-tests.git
———————————————————————————
--Daily Workflow--