To manually test different experiment variants without the necessity of opening a new tab, you can utilize overrides to control which variant is exposed to a QA user or developer. Overrides can be implemented in two primary ways to facilitate manual testing within the same context.
Firstly, you can add the QA user ID to the overrides in the experiment setup. This method allows you to manage the experiment assignment behavior directly from the Console. Secondly, you can use a local override API to set specific overrides via code.
This approach enables you to change the behavior on the fly, similar to modifying a value in local storage. For instance, calling Statsig.overrideConfig
in a browser's developer tools window can alter the experiment's behavior immediately.
These methods ensure that manual testing of different variants can be conducted efficiently and effectively within the same browser tab, providing a seamless experience for QA testers and developers alike.