Enable Launch Your Store feature flag in 9.1 (#48244)

* Revert "Disable Launch Your Store feature flag in 9.0 (#48231)"

This reverts commit 76d2b205e5.

* Re-add the previous changelog

* Update version number in db update

* Add changelog
This commit is contained in:
Adrian Duffell 2024-06-07 13:49:55 +08:00 committed by GitHub
parent 8efb1d3c3d
commit 2583289197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 17 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Toggle LYS feature flag on for 9.1

View File

@ -34,7 +34,7 @@
"wc-pay-promotion": true,
"wc-pay-welcome-page": true,
"async-product-editor-category-field": false,
"launch-your-store": false,
"launch-your-store": true,
"product-editor-template-system": false
}
}

View File

@ -255,6 +255,9 @@ class WC_Install {
'8.9.1' => array(
'wc_update_891_create_plugin_autoinstall_history_option',
),
'9.1.0' => array(
'wc_update_910_add_launch_your_store_tour_option',
),
);
/**

View File

@ -2724,3 +2724,10 @@ function wc_update_891_create_plugin_autoinstall_history_option() {
}
}
}
/**
* Add woocommerce_show_lys_tour.
*/
function wc_update_910_add_launch_your_store_tour_option() {
add_option( 'woocommerce_show_lys_tour', 'yes' );
}

View File

@ -2,7 +2,7 @@ const { test, expect, request } = require( '@playwright/test' );
const { setOption } = require( '../../utils/options' );
const wcApi = require( '@woocommerce/woocommerce-rest-api' ).default;
test.describe.skip( 'Launch Your Store - logged in', () => {
test.describe( 'Launch Your Store - logged in', () => {
test.use( { storageState: process.env.ADMINSTATE } );
test.beforeEach( async ( { baseURL } ) => {

View File

@ -1,7 +1,7 @@
const { test, expect, request } = require( '@playwright/test' );
const { setOption } = require( '../../utils/options' );
test.describe.skip( 'Launch Your Store front end - logged out', () => {
test.describe( 'Launch Your Store front end - logged out', () => {
test.afterAll( async ( { baseURL } ) => {
try {
await setOption(