feat: migrate from aiErrorAssist naming for disabling AI features to aiFeatures.enabled to avoid confusion (#31273)

feat: keep aiErrorAssistant as setting on user object until migration is run
GitOrigin-RevId: df53914163566065d0b91b8d130476fbcdf1ea96
This commit is contained in:
Jimmy Domagala-Tang
2026-02-13 09:05:57 +00:00
committed by Copybot
parent df8190ec8c
commit 551d7b3908
10 changed files with 40 additions and 28 deletions
@@ -9,7 +9,7 @@ import { TutorialProvider } from '@/shared/context/tutorial-context'
describe('Workbench', { scrollBehavior: false }, function () {
beforeEach(function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-showAiErrorAssistant', true)
win.metaAttributesCache.set('ol-showAiFeatures', true)
win.metaAttributesCache.set('ol-splitTestVariants', {
'ai-workbench-release': 'enabled',
})
@@ -106,7 +106,7 @@ describe('Workbench', { scrollBehavior: false }, function () {
describe('when AI assist is not enabled', function () {
beforeEach(function () {
cy.window().then(win => {
win.metaAttributesCache.set('ol-showAiErrorAssistant', false)
win.metaAttributesCache.set('ol-showAiFeatures', false)
})
cy.mount(
<Providers aiAssistEnabled={false}>