mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Cleanup AiErrorAssistant todos post plans changes (#35067)
* feat: cleaning up ai quota leftovers fix: removing more straggler invos * fix: featureUpdater still need analyticsId in the user projection * feat: updating cypress tests to also check for fair usage text GitOrigin-RevId: 09c1167106c144084c111beea56867f6aa4a0906
This commit is contained in:
committed by
Copybot
parent
275d381656
commit
ba76fda37b
@@ -10,9 +10,6 @@ describe('Workbench', { scrollBehavior: false }, function () {
|
||||
beforeEach(function () {
|
||||
cy.window().then(win => {
|
||||
win.metaAttributesCache.set('ol-showAiFeatures', true)
|
||||
win.metaAttributesCache.set('ol-splitTestVariants', {
|
||||
'ai-workbench-release': 'enabled',
|
||||
})
|
||||
win.metaAttributesCache.set('ol-inactiveTutorials', [
|
||||
AI_CONSENT_TUTORIAL_KEY,
|
||||
])
|
||||
@@ -30,13 +27,13 @@ describe('Workbench', { scrollBehavior: false }, function () {
|
||||
</EditorViewContext.Provider>
|
||||
)
|
||||
|
||||
const Providers: FC<PropsWithChildren<{ aiAssistEnabled?: boolean }>> = ({
|
||||
const Providers: FC<PropsWithChildren<{ aiUsageQuota?: string }>> = ({
|
||||
children,
|
||||
aiAssistEnabled = true,
|
||||
aiUsageQuota = 'unlimited',
|
||||
}) => {
|
||||
return (
|
||||
<EditorProviders
|
||||
features={{ aiErrorAssistant: aiAssistEnabled }}
|
||||
features={{ aiUsageQuota: aiUsageQuota }}
|
||||
providers={{ EditorViewProvider, TutorialProvider }}
|
||||
>
|
||||
<div style={{ backgroundColor: '#1b222c' }}>{children}</div>
|
||||
@@ -47,7 +44,7 @@ describe('Workbench', { scrollBehavior: false }, function () {
|
||||
describe('when AI assist is enabled and consent is given', function () {
|
||||
it('should show the chat interface', function () {
|
||||
cy.mount(
|
||||
<Providers aiAssistEnabled>
|
||||
<Providers aiUsageQuota="unlimited">
|
||||
<Workbench />
|
||||
</Providers>
|
||||
)
|
||||
@@ -70,7 +67,7 @@ describe('Workbench', { scrollBehavior: false }, function () {
|
||||
})
|
||||
|
||||
cy.mount(
|
||||
<Providers aiAssistEnabled>
|
||||
<Providers aiUsageQuota="unlimited">
|
||||
<Workbench />
|
||||
</Providers>
|
||||
)
|
||||
@@ -111,7 +108,7 @@ describe('Workbench', { scrollBehavior: false }, function () {
|
||||
win.metaAttributesCache.set('ol-showAiFeatures', false)
|
||||
})
|
||||
cy.mount(
|
||||
<Providers aiAssistEnabled={false}>
|
||||
<Providers aiUsageQuota="free">
|
||||
<Workbench />
|
||||
</Providers>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user