(schemaObj)
| 52 | }; |
| 53 | |
| 54 | export const getCreateView = async (schemaObj)=> { |
| 55 | let ctrl; |
| 56 | const user = userEvent.setup(); |
| 57 | await act(async ()=>{ |
| 58 | ctrl = render(<SchemaViewWithBrowser |
| 59 | formType='dialog' |
| 60 | schema={schemaObj} |
| 61 | viewHelperProps={{ |
| 62 | mode: 'create', |
| 63 | }} |
| 64 | onSave={()=>{/*This is intentional (SonarQube)*/}} |
| 65 | onClose={()=>{/*This is intentional (SonarQube)*/}} |
| 66 | onHelp={()=>{/*This is intentional (SonarQube)*/}} |
| 67 | onEdit={()=>{/*This is intentional (SonarQube)*/}} |
| 68 | onDataChange={()=>{/*This is intentional (SonarQube)*/}} |
| 69 | confirmOnCloseReset={false} |
| 70 | hasSQL={false} |
| 71 | disableSqlHelp={false} |
| 72 | disableDialogHelp={false} |
| 73 | />); |
| 74 | }); |
| 75 | return {ctrl, user}; |
| 76 | }; |
| 77 | |
| 78 | export const getPropertiesView = async (schemaObj, getInitData)=> { |
| 79 | await act(async ()=>{ |
no test coverage detected