> Can we abstract that out into the `gaia_test` class? I think `script defer` might be something we come across frequently.

This solution I have provided is specific to the Usage application. If you're script is deferred you will likely need to wait for whatever variable you want to use to become available. I recommend against this.

> Also I am not concerned about this not being part of an API. I don't think that will be any more fragile than an HTML locator for example. Further, there is a separate test for completing the FTE steps and in then we have to use this snippet to ensure it switches on.

The HTML is also likely to change, however this would be handled by a page object method to complete the FTE steps. The default for FTE is on, so clearing the indexedDB database would ensure that the other test would behave as needed.