test:update get editor value
This commit is contained in:
@@ -34,9 +34,7 @@ describe('控件-复选框', () => {
|
||||
}
|
||||
}])
|
||||
|
||||
const payload = editor.command.getValue()
|
||||
|
||||
const data = payload.data[0]
|
||||
const data = editor.command.getValue().data.main[0]
|
||||
|
||||
expect(data.control!.code).to.be.eq('98175')
|
||||
})
|
||||
|
||||
@@ -41,9 +41,7 @@ describe('控件-列举型', () => {
|
||||
.eq(0)
|
||||
.click()
|
||||
.then(() => {
|
||||
const payload = editor.command.getValue()
|
||||
|
||||
const data = payload.data[0]
|
||||
const data = editor.command.getValue().data.main[0]
|
||||
|
||||
expect(data.control!.value![0].value).to.be.eq(text)
|
||||
|
||||
|
||||
@@ -33,9 +33,7 @@ describe('控件-文本型', () => {
|
||||
cy.get('.ce-inputarea')
|
||||
.type(text)
|
||||
.then(() => {
|
||||
const payload = editor.command.getValue()
|
||||
|
||||
const data = payload.data[0]
|
||||
const data = editor.command.getValue().data.main[0]
|
||||
|
||||
expect(data.control!.value![0].value).to.be.eq(text)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user