refactor: 精简导航并扩大工作区内容显示面积
This commit is contained in:
@@ -3,6 +3,9 @@ import { NSelect } from 'naive-ui'
|
||||
|
||||
/** 展开真实折叠面板后再测试内部操作,避免对不可见控件进行断言。 */
|
||||
export async function expandSections() {
|
||||
const tools = document.querySelector<HTMLElement>('[data-workspace-tools][aria-expanded="false"]')
|
||||
tools?.click()
|
||||
await flushPromises()
|
||||
for (let depth = 0; depth < 4; depth++) {
|
||||
const headers = document.querySelectorAll<HTMLElement>(
|
||||
'.n-collapse-item:not(.n-collapse-item--active) > .n-collapse-item__header .n-collapse-item__header-main'
|
||||
|
||||
Reference in New Issue
Block a user