# QA Checklist

Use this checklist when verifying a new JavaScript API test implementation:

* [ ] `window.shoplift` is defined on page load
* [ ] `isHypothesisActive()` returns `true` with `?slVariant=<id>` URL parameter
* [ ] `isHypothesisActive()` returns expected results in a fresh incognito window (visitor is randomly assigned)
* [ ] Variant experience renders correctly
* [ ] Control experience renders correctly
* [ ] Error handling falls back to control (test by temporarily using an invalid hypothesis ID)
* [ ] No visual flicker during variant application
* [ ] For manual triggers: test only activates on the intended user action
* [ ] For analytics integrations: test data appears in your analytics platform
* [ ] For consent integrations: analytics data is only sent when consent is granted


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shoplift.ai/api-reference/debugging-and-testing/qa-checklist.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
