mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-06 02:28:51 +01:00
ci(backend-review.yml): add linter step to the backend review workflow (#625)
* ci(backend-review.yml): add linter step to the backend review workflow * chore(backend-review.yml): remove prettier from lint-action configuration * chore: apply new linting workflow * chore(lint-staged.config.js): reorder lint-staged tasks for JavaScript and TypeScript files * chore(eslint): update ignorePatterns in .eslintrc.js chore(lint-action): remove prettier option in backend-review.yml chore(package.json): add lint and lint:fix scripts * chore(lint-staged.config.js): remove prettier --write command for js, jsx, ts, tsx files * chore(titleConvo.js): remove unnecessary console.log statement chore(titleConvo.js): add missing comma in options object * chore: apply linting to all files * chore(lint-staged.config.js): update lint-staged configuration to include prettier formatting
This commit is contained in:
parent
637bb6bc11
commit
e5336039fc
231 changed files with 1688 additions and 1526 deletions
|
|
@ -3,7 +3,7 @@ import { expect, test } from '@playwright/test';
|
|||
|
||||
test.describe('Landing suite', () => {
|
||||
|
||||
test('Landing title', async ({page}) => {
|
||||
test('Landing title', async ({ page }) => {
|
||||
await page.goto('http://localhost:3080/');
|
||||
const pageTitle = await page.textContent('#landing-title');
|
||||
expect(pageTitle.length).toBeGreaterThan(0);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ function isUUID(uuid) {
|
|||
|
||||
test.describe('Messaging suite', () => {
|
||||
|
||||
test('textbox should be focused after receiving message & test expected navigation', async ({page}) => {
|
||||
test('textbox should be focused after receiving message & test expected navigation', async ({ page }) => {
|
||||
test.setTimeout(120000);
|
||||
const message = 'hi';
|
||||
const endpoint = endpoints[1];
|
||||
|
|
@ -26,12 +26,12 @@ test.describe('Messaging suite', () => {
|
|||
page.waitForResponse(async (response) => {
|
||||
return response.url().includes(`/api/ask/${endpoint}`) && response.status() === 200;
|
||||
}),
|
||||
page.locator('form').getByRole('textbox').press('Enter')
|
||||
page.locator('form').getByRole('textbox').press('Enter'),
|
||||
];
|
||||
|
||||
const [response] = await Promise.all(responsePromise);
|
||||
const responseBody = await response.body();
|
||||
const messageSuccess = responseBody.includes(`"final":true`);
|
||||
const messageSuccess = responseBody.includes('"final":true');
|
||||
expect(messageSuccess).toBe(true);
|
||||
|
||||
// Check if textbox is focused
|
||||
|
|
|
|||
|
|
@ -15,13 +15,13 @@ test.describe('Settings suite', () => {
|
|||
const button2 = await page.getByRole('button', { name: 'Mode: Sydney' });
|
||||
|
||||
try {
|
||||
await button1.click({ timeout: 100});
|
||||
await button1.click({ timeout: 100 });
|
||||
} catch (e) {
|
||||
// console.log('Bing button', e);
|
||||
}
|
||||
|
||||
try {
|
||||
await button2.click({ timeout: 100});
|
||||
await button2.click({ timeout: 100 });
|
||||
} catch (e) {
|
||||
// console.log('Sydney button', e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue