体验: 滚动条加深与选中行区分,文件列表表头固定不随滚动且横向滚动条贴可视区底部
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -26,6 +26,15 @@ try {
|
||||
await win.getByText("源码目录").waitFor({ timeout: 120000 })
|
||||
await win.waitForTimeout(6000)
|
||||
await win.screenshot({ path: path.join(SHOT_DIR, "22-workspace-cards.png") })
|
||||
// 验证表头 sticky:滚动文件列表后表头应仍可见
|
||||
await win.evaluate(() => {
|
||||
const container = document.querySelector('[data-slot="table-container"]')
|
||||
if (container) {
|
||||
container.scrollTop = 400
|
||||
}
|
||||
})
|
||||
await win.waitForTimeout(600)
|
||||
await win.screenshot({ path: path.join(SHOT_DIR, "24-sticky-header.png") })
|
||||
const themeButton = win.getByRole("button", { name: /主题:/ })
|
||||
await themeButton.click()
|
||||
await win.waitForTimeout(400)
|
||||
|
||||
Reference in New Issue
Block a user