test(web): finish the textarea-locator sweep after the architecture merge

preview-boot's hero wait was master's new textarea:enabled locator (the
conv refactor predates the Lexical composer); migrate it to the
data-composer-input surface like every other lane. Drop the unnecessary
DOMRect assertion oxlint flagged on the new Range stub.
This commit is contained in:
Yichen Jiang
2026-08-24 12:06:48 +08:00
parent 04caa1248d
commit 6f17d10102
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ export function installAssembledBootEnv(): void {
if (typeof Range.prototype.getBoundingClientRect !== 'function') {
Range.prototype.getBoundingClientRect = () => ({
top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0, x: 0, y: 0, toJSON: () => ({}),
}) as DOMRect
})
}
beforeEach(() => {
localStorage.clear()
+1 -1
View File
@@ -312,7 +312,7 @@ async function bootPreview(origin: string, browser: Browser): Promise<void> {
const configureLater = page.getByRole('button', { name: 'Configure later' })
await configureLater.waitFor({ timeout: 30_000 })
await configureLater.click()
await page.locator('textarea:enabled[placeholder="Describe what you want to build"]')
await page.locator('[data-composer-input][data-placeholder="Describe what you want to build"]')
.waitFor({ timeout: 30_000 })
const exercised = await page.evaluate(async () => {