import { expect } from '@playwright/test' import { page, test, TIMEOUT } from '../config/fixtures' test('Select GPT model from Hub and Chat with Invalid API Key', async ({ hubPage }) => { await hubPage.navigateByMenu() await hubPage.verifyContainerVisible() // Select the first GPT model await page .locator('[data-testid*="GPT"]') .first().click() // TBU // await page // .getByTestId('btn-setup') // .click() // const APIKeyError = page.getByTestId('setup-api-key-modal') // await expect(APIKeyError).toBeVisible({ // timeout: TIMEOUT, // }) // Deprecated since Jan is no longer allow chat with remote model without API Key, but keep it here to wait for a new feature // // Attempt to create thread and chat in Thread page // await page // .getByTestId('btn-create-thread') // .click() // // await page // .getByTestId('txt-input-chat') // .fill('dummy value') // // await page // .getByTestId('btn-send-chat') // .click() // // await page.waitForFunction(() => { // const loaders = document.querySelectorAll('[data-testid$="loader"]'); // return !loaders.length; // }, { timeout: TIMEOUT }); // // const APIKeyError = page.getByTestId('invalid-API-key-error') // await expect(APIKeyError).toBeVisible({ // timeout: TIMEOUT, // }) })