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-extension
folder
- In
data
folder, create a folder namedsource
and put thequeries.js
file in it. This file contains the queries that will be used to fetch the tests. - You can see in example folder how the
queries.js
file 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
data
folder, navigate to thesource
folder and put thesessionStorage.js
file 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_on
is 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.