mirror of
https://github.com/vxcontrol/ncform.git
synced 2026-07-18 16:24:27 -04:00
committed by
Dmitry Nagibin
parent
df1cd23f15
commit
e5a5e597c6
@@ -523,7 +523,7 @@ const ncformUtils = {
|
||||
break;
|
||||
case "number":
|
||||
case "integer":
|
||||
defVal = undefined; // 数字默认值不好给,所以这里给undefined
|
||||
defVal = ""; // 数字默认值不好给,所以这里给undefined
|
||||
break;
|
||||
case "boolean":
|
||||
defVal = false;
|
||||
|
||||
@@ -140,4 +140,12 @@ context('Layout widgets', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('array: with number items', () => {
|
||||
let id = md5('array: with number items');
|
||||
cy.get(`[data-cy=${id}]`).within(() => {
|
||||
cy.get('legend').contains('user').as('userLegend');
|
||||
cy.get('@userLegend').parent().find('button').contains('Add').click();
|
||||
})
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user