Restore Ultracite + fix sidebar (#1233)
This commit is contained in:
parent
8fbfc253fa
commit
947ed094a6
177 changed files with 6908 additions and 8306 deletions
|
|
@ -1,14 +1,14 @@
|
|||
import { expect as baseExpect, test as baseTest } from '@playwright/test';
|
||||
import { createAuthenticatedContext, type UserContext } from './helpers';
|
||||
import { getUnixTime } from 'date-fns';
|
||||
import { expect as baseExpect, test as baseTest } from "@playwright/test";
|
||||
import { getUnixTime } from "date-fns";
|
||||
import { createAuthenticatedContext, type UserContext } from "./helpers";
|
||||
|
||||
interface Fixtures {
|
||||
type Fixtures = {
|
||||
adaContext: UserContext;
|
||||
babbageContext: UserContext;
|
||||
curieContext: UserContext;
|
||||
}
|
||||
};
|
||||
|
||||
export const test = baseTest.extend<{}, Fixtures>({
|
||||
export const test = baseTest.extend<object, Fixtures>({
|
||||
adaContext: [
|
||||
async ({ browser }, use, workerInfo) => {
|
||||
const ada = await createAuthenticatedContext({
|
||||
|
|
@ -19,7 +19,7 @@ export const test = baseTest.extend<{}, Fixtures>({
|
|||
await use(ada);
|
||||
await ada.context.close();
|
||||
},
|
||||
{ scope: 'worker' },
|
||||
{ scope: "worker" },
|
||||
],
|
||||
babbageContext: [
|
||||
async ({ browser }, use, workerInfo) => {
|
||||
|
|
@ -31,20 +31,19 @@ export const test = baseTest.extend<{}, Fixtures>({
|
|||
await use(babbage);
|
||||
await babbage.context.close();
|
||||
},
|
||||
{ scope: 'worker' },
|
||||
{ scope: "worker" },
|
||||
],
|
||||
curieContext: [
|
||||
async ({ browser }, use, workerInfo) => {
|
||||
const curie = await createAuthenticatedContext({
|
||||
browser,
|
||||
name: `curie-${workerInfo.workerIndex}-${getUnixTime(new Date())}`,
|
||||
chatModel: 'chat-model-reasoning',
|
||||
});
|
||||
|
||||
await use(curie);
|
||||
await curie.context.close();
|
||||
},
|
||||
{ scope: 'worker' },
|
||||
{ scope: "worker" },
|
||||
],
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue