Revert "Upgrade linter and formatter to Ultracite" (#1226)

This commit is contained in:
josh 2025-09-21 12:03:29 +01:00 committed by GitHub
parent 0e320b391d
commit 1aff7d9868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 8334 additions and 6943 deletions

View file

@ -1,7 +1,7 @@
import { expect, test } from "../fixtures";
import { ChatPage } from "../pages/chat";
import { ChatPage } from '../pages/chat';
import { test, expect } from '../fixtures';
test.describe("chat activity with reasoning", () => {
test.describe('chat activity with reasoning', () => {
let chatPage: ChatPage;
test.beforeEach(async ({ curieContext }) => {
@ -9,25 +9,25 @@ test.describe("chat activity with reasoning", () => {
await chatPage.createNewChat();
});
test("Curie can send message and generate response with reasoning", async () => {
await chatPage.sendUserMessage("Why is the sky blue?");
test('Curie can send message and generate response with reasoning', async () => {
await chatPage.sendUserMessage('Why is the sky blue?');
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
expect(assistantMessage.content).toBe("It's just blue duh!");
expect(assistantMessage.reasoning).toBe(
"The sky is blue because of rayleigh scattering!"
'The sky is blue because of rayleigh scattering!',
);
});
test("Curie can toggle reasoning visibility", async () => {
await chatPage.sendUserMessage("Why is the sky blue?");
test('Curie can toggle reasoning visibility', async () => {
await chatPage.sendUserMessage('Why is the sky blue?');
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
const reasoningElement =
assistantMessage.element.getByTestId("message-reasoning");
assistantMessage.element.getByTestId('message-reasoning');
expect(reasoningElement).toBeVisible();
await assistantMessage.toggleReasoningVisibility();
@ -37,18 +37,18 @@ test.describe("chat activity with reasoning", () => {
await expect(reasoningElement).toBeVisible();
});
test("Curie can edit message and resubmit", async () => {
await chatPage.sendUserMessage("Why is the sky blue?");
test('Curie can edit message and resubmit', async () => {
await chatPage.sendUserMessage('Why is the sky blue?');
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
const reasoningElement =
assistantMessage.element.getByTestId("message-reasoning");
assistantMessage.element.getByTestId('message-reasoning');
expect(reasoningElement).toBeVisible();
const userMessage = await chatPage.getRecentUserMessage();
await userMessage.edit("Why is grass green?");
await userMessage.edit('Why is grass green?');
await chatPage.isGenerationComplete();
const updatedAssistantMessage = await chatPage.getRecentAssistantMessage();
@ -56,7 +56,7 @@ test.describe("chat activity with reasoning", () => {
expect(updatedAssistantMessage.content).toBe("It's just green duh!");
expect(updatedAssistantMessage.reasoning).toBe(
"Grass is green because of chlorophyll absorption!"
'Grass is green because of chlorophyll absorption!',
);
});
});