mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Update free AI credits success claim callout (no-changelog) (#12480)
This commit is contained in:
parent
c03fe0af38
commit
ac6b244c71
|
@ -60,7 +60,17 @@ const assertUserCanClaimCredits = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const assertUserClaimedCredits = () => {
|
const assertUserClaimedCredits = () => {
|
||||||
expect(screen.getByText('Claimed 100 free OpenAI API credits')).toBeInTheDocument();
|
expect(
|
||||||
|
screen.getByText(
|
||||||
|
'Claimed 100 free OpenAI API credits! Please note these free credits are only for the following models:',
|
||||||
|
),
|
||||||
|
).toBeInTheDocument();
|
||||||
|
|
||||||
|
expect(
|
||||||
|
screen.getByText(
|
||||||
|
'gpt-4o-mini, text-embedding-3-small, dall-e-3, tts-1, whisper-1, and text-moderation-latest',
|
||||||
|
),
|
||||||
|
).toBeInTheDocument();
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('FreeAiCreditsCallout', () => {
|
describe('FreeAiCreditsCallout', () => {
|
||||||
|
|
|
@ -112,11 +112,16 @@ const onClaimCreditsClicked = async () => {
|
||||||
</template>
|
</template>
|
||||||
</n8n-callout>
|
</n8n-callout>
|
||||||
<n8n-callout v-else-if="showSuccessCallout" theme="success" icon="check-circle">
|
<n8n-callout v-else-if="showSuccessCallout" theme="success" icon="check-circle">
|
||||||
|
<n8n-text>
|
||||||
{{
|
{{
|
||||||
i18n.baseText('freeAi.credits.callout.success.title', {
|
i18n.baseText('freeAi.credits.callout.success.title.part1', {
|
||||||
interpolate: { credits: settingsStore.aiCreditsQuota },
|
interpolate: { credits: settingsStore.aiCreditsQuota },
|
||||||
})
|
})
|
||||||
}}
|
}}</n8n-text
|
||||||
|
>
|
||||||
|
<n8n-text :bold="true">
|
||||||
|
{{ i18n.baseText('freeAi.credits.callout.success.title.part2') }}</n8n-text
|
||||||
|
>
|
||||||
</n8n-callout>
|
</n8n-callout>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2844,7 +2844,8 @@
|
||||||
"testDefinition.deleteTest": "Delete Test",
|
"testDefinition.deleteTest": "Delete Test",
|
||||||
"freeAi.credits.callout.claim.title": "Get {credits} free OpenAI API credits",
|
"freeAi.credits.callout.claim.title": "Get {credits} free OpenAI API credits",
|
||||||
"freeAi.credits.callout.claim.button.label": "Claim credits",
|
"freeAi.credits.callout.claim.button.label": "Claim credits",
|
||||||
"freeAi.credits.callout.success.title": "Claimed {credits} free OpenAI API credits",
|
"freeAi.credits.callout.success.title.part1": "Claimed {credits} free OpenAI API credits! Please note these free credits are only for the following models:",
|
||||||
|
"freeAi.credits.callout.success.title.part2": "gpt-4o-mini, text-embedding-3-small, dall-e-3, tts-1, whisper-1, and text-moderation-latest",
|
||||||
"freeAi.credits.credentials.edit": "This is a managed credential and cannot be edited.",
|
"freeAi.credits.credentials.edit": "This is a managed credential and cannot be edited.",
|
||||||
"freeAi.credits.showError.claim.title": "Free AI credits",
|
"freeAi.credits.showError.claim.title": "Free AI credits",
|
||||||
"freeAi.credits.showError.claim.message": "Enable to claim credits"
|
"freeAi.credits.showError.claim.message": "Enable to claim credits"
|
||||||
|
|
Loading…
Reference in a new issue