chore: organize tests and tweak stream delays (#942)
This commit is contained in:
parent
020494f63b
commit
6e16f3b30a
8 changed files with 21 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { expect, test } from '@playwright/test';
|
||||
import { ChatPage } from './pages/chat';
|
||||
import { ArtifactPage } from './pages/artifact';
|
||||
import { ChatPage } from '../pages/chat';
|
||||
import { ArtifactPage } from '../pages/artifact';
|
||||
|
||||
test.describe('artifacts activity', () => {
|
||||
let chatPage: ChatPage;
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import path from 'path';
|
||||
import path from 'node:path';
|
||||
import { generateId } from 'ai';
|
||||
import { getUnixTime } from 'date-fns';
|
||||
import { expect, test as setup } from '@playwright/test';
|
||||
|
||||
const authFile = path.join(__dirname, '../playwright/.auth/session.json');
|
||||
const authFile = path.join(__dirname, '../../playwright/.auth/session.json');
|
||||
|
||||
setup('authenticate', async ({ page }) => {
|
||||
const testEmail = `test-${getUnixTime(new Date())}@playwright.com`;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import { generateId } from 'ai';
|
||||
import { getUnixTime } from 'date-fns';
|
||||
import { test, expect, Page } from '@playwright/test';
|
||||
import { test, expect, type Page } from '@playwright/test';
|
||||
|
||||
test.use({ storageState: { cookies: [], origins: [] } });
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { ChatPage } from './pages/chat';
|
||||
import { ChatPage } from '../pages/chat';
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test.describe('chat activity', () => {
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
import path from 'path';
|
||||
import path from 'node:path';
|
||||
import { expect, test as setup } from '@playwright/test';
|
||||
import { ChatPage } from './pages/chat';
|
||||
import { ChatPage } from '../pages/chat';
|
||||
|
||||
const reasoningFile = path.join(
|
||||
__dirname,
|
||||
'../playwright/.reasoning/session.json',
|
||||
'../../playwright/.reasoning/session.json',
|
||||
);
|
||||
|
||||
setup('switch to reasoning model', async ({ page }) => {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { ChatPage } from './pages/chat';
|
||||
import { ChatPage } from '../pages/chat';
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test.describe('chat activity with reasoning', () => {
|
||||
Loading…
Add table
Add a link
Reference in a new issue