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
+1 -3
View File
@@ -28,9 +28,7 @@ describe('菜单-清除格式', () => {
cy.get('.menu-item__format')
.click()
.then(() => {
const payload = editor.command.getValue()
const data = payload.data
const data = editor.command.getValue().data.main
expect(data[0].italic).to.eq(false)