mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-28 21:30:18 +01:00
e2e: refactoring and making it work.
This commit is contained in:
parent
88c32b9ec6
commit
87f16e0619
5 changed files with 296 additions and 295 deletions
|
|
@ -3,23 +3,6 @@
|
|||
//
|
||||
// const initialNewChatSelector = '[data-testid="nav-new-chat-button"]';
|
||||
//
|
||||
// /**
|
||||
// * Helper: If the Terms & Conditions modal appears, click its "Accept" button.
|
||||
// * Assumes that the accept button contains the text "Accept" (case-insensitive).
|
||||
// */
|
||||
// async function acceptTermsIfPresent(page) {
|
||||
// // Wait up to 10 seconds for the modal dialog to appear.
|
||||
// const dialog = await page.waitForSelector('role=dialog', { timeout: 10000 }).catch(() => null);
|
||||
// if (dialog) {
|
||||
// // Wait for the "I accept" button to become visible (up to 10 seconds).
|
||||
// const acceptButton = await page.waitForSelector('button:has-text("I accept")', { timeout: 10000 }).catch(() => null);
|
||||
// if (acceptButton) {
|
||||
// await acceptButton.click();
|
||||
// // Wait for the dialog to be detached (up to 10 seconds).
|
||||
// await page.waitForSelector('role=dialog', { state: 'detached', timeout: 10000 });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// const enterTestKey = async (page: Page, expectedEndpointText: string) => {
|
||||
// // Open a new conversation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue