Hey there! 👋 This is a Chrome extension that will help you to easily access the test values you need. You can copy the test to clipboard or add the test to the URL 🎉
- Clone this repo
- Open Chrome and go to
chrome://extensions/ - Enable Developer Mode
- Click "Load unpacked"
- Select the
darwin-tests-chrome-extensionfolder
- In
datafolder, create a folder namedsourceand put thequeries.jsfile in it. This file contains the queries that will be used to fetch the tests. - You can see in example folder how the
queries.jsfile should look like. - Basically, the file should look like this:
export const queries = [
"?mock_test=I_NEED_COFFEE_on",
"?mock_test=ALIENS_EXIST_on",
"?mock_test=EASY_RIGHT_on",
]- In
datafolder, navigate to thesourcefolder and put thesessionStorage.jsfile in it. This file contains the session storage key that will be used to fetch the running tests.
export const sessionStorageKey = "your_sessionStorageKey_here"- Open Chrome and go to any page you want to use the extension on
- Click on the Darwin Tests extension icon
- The extension should be loaded and you should see a list of tests
- Copy the test to clipboard
- Add the test to the URL
💡 Hint:
- Even you can see only the name of the test, the whole test is copied to clipboard or added to the URL. What does it mean? If you see eg.
I_NEED_COFFEE_on, the whole test?mock_test=I_NEED_COFFEE_onis copied to clipboard or added to the URL.
- Pull the latest changes from the repo
- Go to
chrome://extensions/ - Click the refresh icon on the Darwin A/B Tests extension
- Or click on Update button next to Pack extension and Load unpacked.
I hope you find this extension useful. If you have any questions, feel free to contact me.
