feat: improve error messages (#1006)
This commit is contained in:
parent
9127e1be88
commit
8a7d3e9950
13 changed files with 370 additions and 174 deletions
|
|
@ -2,6 +2,7 @@ import { expect, test } from '../fixtures';
|
|||
import { AuthPage } from '../pages/auth';
|
||||
import { generateRandomTestUser } from '../helpers';
|
||||
import { ChatPage } from '../pages/chat';
|
||||
import { getMessageByErrorCode } from '@/lib/errors';
|
||||
|
||||
test.describe
|
||||
.serial('Guest Session', () => {
|
||||
|
|
@ -201,7 +202,7 @@ test.describe('Entitlements', () => {
|
|||
|
||||
await chatPage.sendUserMessage('Why is the sky blue?');
|
||||
await chatPage.expectToastToContain(
|
||||
'You have exceeded your maximum number of messages for the day! Please try again later.',
|
||||
getMessageByErrorCode('rate_limit:chat'),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue