feat:add cypress E2E
This commit is contained in:
@@ -11,6 +11,8 @@ window.onload = function () {
|
||||
const container = document.querySelector<HTMLDivElement>('.editor')!
|
||||
const instance = new Editor(container, <IElement[]>data, options)
|
||||
console.log('实例: ', instance)
|
||||
// cypress使用
|
||||
Reflect.set(window, 'editor', instance)
|
||||
|
||||
// 2. | 撤销 | 重做 | 格式刷 | 清除格式 |
|
||||
const undoDom = document.querySelector<HTMLDivElement>('.menu-item__undo')!
|
||||
|
||||
Reference in New Issue
Block a user