MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / getCreateView

Function getCreateView

web/regression/javascript/genericFunctions.jsx:54–76  ·  view source on GitHub ↗
(schemaObj)

Source from the content-addressed store, hash-verified

52};
53
54export 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
78export const getPropertiesView = async (schemaObj, getInitData)=> {
79 await act(async ()=>{

Calls 1

setupMethod · 0.45

Tested by

no test coverage detected