Skip to content

Commit 521da8c

Browse files
authored
Merge branch 'main' into fix/6827-symbol-replace-dark-mode
2 parents 75d57d1 + 533e174 commit 521da8c

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

e2e/playwright/text-to-cad-tests.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ test.describe('Mocked Text-to-CAD API tests', { tag: ['@skipWin'] }, () => {
905905
await page.keyboard.press('Enter')
906906

907907
// Go into the project that was created from Text to CAD
908-
await page.getByText(projectName).click()
908+
await homePage.openProject(projectName)
909909

910910
await expect(page.getByTestId('app-header-project-name')).toBeVisible()
911911
await expect(page.getByTestId('app-header-project-name')).toContainText(
@@ -951,7 +951,7 @@ test.describe('Mocked Text-to-CAD API tests', { tag: ['@skipWin'] }, () => {
951951
await page.keyboard.press('Enter')
952952

953953
// Go into the project that was created from Text to CAD
954-
await page.getByText(projectName).click()
954+
await homePage.openProject(projectName)
955955

956956
await page.getByRole('button', { name: 'Accept' }).click()
957957

src/components/ToastTextToCad.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,16 @@ export function ToastTextToCadSuccess({
332332
</div>
333333
<div className="flex flex-col justify-between gap-6">
334334
<section>
335-
<h2>Text-to-CAD successful</h2>
336-
<p className="text-sm text-chalkboard-70 dark:text-chalkboard-30">
337-
Prompt: "
335+
<h2 className="font-sans font-bold">Text-to-CAD successful</h2>
336+
<p className="text-sm my-3">
337+
File "{fileName}" was successfully added to project "{projectName}"
338+
from prompt:
339+
</p>
340+
<blockquote className="my-3 border-solid border-l-2 pl-4 text-sm text-chalkboard-70 dark:text-chalkboard-30">
338341
{data.prompt.length > PROMPT_TRUNCATE_LENGTH
339342
? data.prompt.slice(0, PROMPT_TRUNCATE_LENGTH) + '...'
340343
: data.prompt}
341-
"
342-
</p>
344+
</blockquote>
343345
<TextToCadImprovementMessage
344346
className="text-sm mt-2"
345347
label="Not what you expected?"

0 commit comments

Comments
 (0)