chore: make e2e tests pass

This commit is contained in:
Zeke Zhang 2024-11-06 17:05:36 +08:00
parent 436b001c9b
commit a84a22c140

View File

@ -18,7 +18,7 @@ export function useSetAriaLabelForDrawer(visible: boolean) {
if (visible) {
// 因为 Action 是点击后渲染内容,所以需要延迟一下
setTimeout(() => {
const wrappers = [...document.querySelectorAll('.ant-drawer-wrapper-body')];
const wrappers = [...document.querySelectorAll('.ant-drawer-content-wrapper')];
const masks = [...document.querySelectorAll('.ant-drawer-mask')];
// 如果存在多个 mask最后一个 mask 为当前打开的 maskwrapper 也是同理
const currentMask = masks[masks.length - 1];