Skip to content

Commit 47ae2b1

Browse files
committed
fix(e2e): update toolbar locator to header for clear button
1 parent 18f84b1 commit 47ae2b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/streaming-chat-dev.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test.describe('streaming-chat (dev)', () => {
1313
await expect(page.locator('.df-nav-brand')).toHaveText('Streaming Chat')
1414
await expect(page.locator('div.flex-wrap button').first()).toBeVisible()
1515

16-
const clearBtn = page.locator('.toolbar button:has-text("Clear")')
16+
const clearBtn = page.locator('header button:has-text("Clear")')
1717
if (await clearBtn.isEnabled())
1818
await clearBtn.click()
1919
await expect(page.locator('div[data-role]')).toHaveCount(0)
@@ -39,7 +39,7 @@ test.describe('streaming-chat (dev)', () => {
3939
.toContainText('Tiny chunks arrive', { timeout: 10_000 })
4040
await expect(page.locator('div[data-role="assistant"][data-streaming="true"]')).toHaveCount(0)
4141

42-
await page.locator('.toolbar button:has-text("Clear")').click()
42+
await page.locator('header button:has-text("Clear")').click()
4343

4444
await expect(page.locator('div[data-role]')).toHaveCount(0)
4545
await expect(page.locator('[data-testid="status"]')).toContainText('0 messages')

0 commit comments

Comments
 (0)