mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
add test id to TitleButton
This commit is contained in:
parent
55ce33aa6a
commit
ab4fc6eeb1
3 changed files with 5 additions and 5 deletions
|
|
@ -5,7 +5,7 @@ export default function TitleButton({ primaryText = '', secondaryText = '' }) {
|
|||
<Trigger asChild>
|
||||
<div
|
||||
className="group flex cursor-pointer items-center gap-1 rounded-xl px-3 py-2 text-lg font-medium hover:bg-gray-50 radix-state-open:bg-gray-50 dark:hover:bg-black/10 dark:radix-state-open:bg-black/20"
|
||||
// type="button"
|
||||
data-testid="title-button"
|
||||
>
|
||||
<div>
|
||||
{primaryText}{' '}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ test.describe('Key suite', () => {
|
|||
await page.goto('http://localhost:3080/', { timeout: 5000 });
|
||||
const endpoint = 'chatGPTBrowser';
|
||||
|
||||
const newTopicButton = page.locator('.hide-scrollbar > .group');
|
||||
const newTopicButton = page.getByTestId('title-button');
|
||||
await newTopicButton.click();
|
||||
|
||||
const endpointItem = page.getByTestId(`endpoint-item-${endpoint}`);
|
||||
|
|
@ -53,7 +53,7 @@ test.describe('Key suite', () => {
|
|||
await page.goto('http://localhost:3080/', { timeout: 5000 });
|
||||
const endpoint = 'chatGPTBrowser';
|
||||
|
||||
const newTopicButton = page.locator('.hide-scrollbar > .group');
|
||||
const newTopicButton = page.getByTestId('title-button');
|
||||
await newTopicButton.click();
|
||||
|
||||
const endpointItem = page.getByTestId(`endpoint-item-${endpoint}`);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { expect, test } from '@playwright/test';
|
||||
import type { Response, Page, BrowserContext } from '@playwright/test';
|
||||
|
||||
const basePath = 'http://localhost:3080/chat/';
|
||||
const basePath = 'http://localhost:3080/c/';
|
||||
const initialUrl = `${basePath}new`;
|
||||
const endpoints = ['google', 'openAI', 'azureOpenAI', 'bingAI', 'chatGPTBrowser', 'gptPlugins'];
|
||||
const endpoint = endpoints[1];
|
||||
|
|
@ -50,7 +50,7 @@ test.describe('Messaging suite', () => {
|
|||
test('textbox should be focused after generation, test expected navigation, & test editing messages', async ({
|
||||
page,
|
||||
}) => {
|
||||
test.setTimeout(120000);
|
||||
test.setTimeout(10000);
|
||||
const message = 'hi';
|
||||
await page.goto(initialUrl, { timeout: 5000 });
|
||||
await page.locator('#new-conversation-menu').click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue