From 3d65bfa38dc830377e90c278c2bcfef36b8b7a09 Mon Sep 17 00:00:00 2001 From: Ronald Langeveld Date: Tue, 17 Dec 2024 10:44:59 +0700 Subject: [PATCH] Added comment regarding Feature flags & E2E tests (#21897) ref [ENG-1862](https://linear.app/tryghost/issue/ENG-1862/) - Added information regarding Feature Flag behaviour during E2E tests --- ghost/core/core/shared/labs.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index 0491d25561..b9f7e6f348 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -1,3 +1,10 @@ +// Feature flags behaviour in tests: +// By default, all flags listed in GA_FEATURES, BETA_FEATURES, and ALPHA_FEATURES +// are globally enabled during E2E tests. This ensures flagged code paths are tested +// automatically. +// For more details, see the E2E testing documentation: +// https://www.notion.so/ghost/End-to-end-Testing-6a2ef073b1754b18aff42e24a632a007 + const _ = require('lodash'); const errors = require('@tryghost/errors'); const logging = require('@tryghost/logging');