test:update get editor value

This commit is contained in:
Hufe921
2023-03-18 12:25:20 +08:00
parent 6082ab26d1
commit 436d1de284
19 changed files with 37 additions and 95 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ describe('基础功能', () => {
cy.get('@canvas')
.type(text)
.then(() => {
const payload = editor.command.getValue()
const data = editor.command.getValue().data.main
expect(payload.data[0].value).to.eq(text)
expect(data[0].value).to.eq(text)
})
})
})