e82f845d5c
refs https://ghost.slack.com/archives/C0568LN2CGJ/p1696495250115289 Adds a new helper function `toggleLabsFlag` that allows toggling of lab flags within tests. This function can be used directly inside a test case or within `beforeEach` or `beforeAll` hooks to set the initial state before tests run. Usage: - To toggle a flag within a test: `toggleLabsFlag('recommendations', false);` - To set initial state in a hook: ```javascript beforeEach(() => { toggleLabsFlag('recommendations', true); }); --- <!-- Leave the line below if you'd like GitHub Copilot to generate a summary from your commit --> <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at e138d58</samp> This change adds a utility module for acceptance testing of experimental features in Ghost. It allows tests to mock and change the labs settings using `defaultLabFlags` and `toggleLabsFlag`. |
||
---|---|---|
.. | ||
files | ||
images | ||
responses | ||
acceptance.ts |