From 41b6310e3ddc220c1a0e8c6142c546eee6be4cef Mon Sep 17 00:00:00 2001 From: Adrian Duffell <9312929+adrianduffell@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:13:42 +0800 Subject: [PATCH] Remove Launch Your Store Feature Flag (#46510) * Enable launch-your-store feature flag * Add changelog --- plugins/woocommerce/changelog/update-lys-feature-flag | 4 ++++ plugins/woocommerce/client/admin/config/core.json | 2 +- plugins/woocommerce/tests/e2e-pw/global-setup.js | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 plugins/woocommerce/changelog/update-lys-feature-flag diff --git a/plugins/woocommerce/changelog/update-lys-feature-flag b/plugins/woocommerce/changelog/update-lys-feature-flag new file mode 100644 index 00000000000..87153905891 --- /dev/null +++ b/plugins/woocommerce/changelog/update-lys-feature-flag @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Coming soon mode and the Launch Your Store task. diff --git a/plugins/woocommerce/client/admin/config/core.json b/plugins/woocommerce/client/admin/config/core.json index 4399c0574c5..357b922a9b4 100644 --- a/plugins/woocommerce/client/admin/config/core.json +++ b/plugins/woocommerce/client/admin/config/core.json @@ -38,6 +38,6 @@ "wc-pay-promotion": true, "wc-pay-welcome-page": true, "async-product-editor-category-field": false, - "launch-your-store": false + "launch-your-store": true } } diff --git a/plugins/woocommerce/tests/e2e-pw/global-setup.js b/plugins/woocommerce/tests/e2e-pw/global-setup.js index 94770735879..43b23552a8f 100644 --- a/plugins/woocommerce/tests/e2e-pw/global-setup.js +++ b/plugins/woocommerce/tests/e2e-pw/global-setup.js @@ -1,9 +1,10 @@ -const { chromium, expect } = require( '@playwright/test' ); +const { chromium, expect, request } = require( '@playwright/test' ); const { admin, customer } = require( './test-data/data' ); const fs = require( 'fs' ); const { site } = require( './utils' ); const wcApi = require( '@woocommerce/woocommerce-rest-api' ).default; const { ENABLE_HPOS } = process.env; +const { setOption } = require( './utils/options' ); /** * @param {import('@playwright/test').FullConfig} config @@ -56,6 +57,9 @@ module.exports = async ( config ) => { const adminPage = await adminContext.newPage(); const customerPage = await customerContext.newPage(); + // Ensure live mode state (coming soon = no) + await setOption( request, baseURL, 'woocommerce_coming_soon', 'no' ); + // Sign in as admin user and save state const adminRetries = 5; for ( let i = 0; i < adminRetries; i++ ) {