Commit 0168822999f for woocommerce

commit 0168822999f28396a8c06c649ad60edf7cde087f
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date:   Tue Oct 6 13:32:25 2026 +0300

    [e2e] Fix Blocks storage-state path depending on the working folder (#69434)

diff --git a/plugins/woocommerce/changelog/dev-e2e-cwd-independent-paths b/plugins/woocommerce/changelog/dev-e2e-cwd-independent-paths
new file mode 100644
index 00000000000..0a96fd3bb76
--- /dev/null
+++ b/plugins/woocommerce/changelog/dev-e2e-cwd-independent-paths
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+Comment: Make the Blocks e2e login state path independent of the working folder; tests only.
+
diff --git a/plugins/woocommerce/tests/e2e/utils/blocks/constants.ts b/plugins/woocommerce/tests/e2e/utils/blocks/constants.ts
index e9fcc2bf441..29a8d0563a5 100644
--- a/plugins/woocommerce/tests/e2e/utils/blocks/constants.ts
+++ b/plugins/woocommerce/tests/e2e/utils/blocks/constants.ts
@@ -22,8 +22,7 @@ export const BASE_URL =
 	'http://localhost:' + ( process.env.WP_ENV_PORT || '8086' );

 export const WP_ARTIFACTS_PATH =
-	process.env.WP_ARTIFACTS_PATH ||
-	path.join( process.cwd(), 'tests/e2e/.state' );
+	process.env.WP_ARTIFACTS_PATH || path.join( __dirname, '../../.state' );

 export const STORAGE_STATE_PATH =
 	process.env.STORAGE_STATE_PATH ||