2021-08-19 13:35:10 +05:30
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
|
//
|
2024-01-01 14:13:48 +05:30
|
|
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
2021-08-19 13:35:10 +05:30
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
|
//
|
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
|
2021-08-19 13:35:10 +05:30
|
|
|
import EDBVarSchema from '../../../pgadmin/browser/server_groups/servers/databases/schemas/packages/edbvars/static/js/edbvar.ui';
|
2022-01-28 17:20:34 +05:30
|
|
|
import {genericBeforeEach, getCreateView, getEditView, getPropertiesView} from '../genericFunctions';
|
2021-08-19 13:35:10 +05:30
|
|
|
|
|
|
|
|
describe('EDBVarSchema', ()=>{
|
2023-10-23 17:43:17 +05:30
|
|
|
|
2021-08-19 13:35:10 +05:30
|
|
|
let edbVarSchemaObj = new EDBVarSchema();
|
|
|
|
|
let getInitData = ()=>Promise.resolve({});
|
|
|
|
|
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
|
|
|
|
|
|
2021-08-19 13:35:10 +05:30
|
|
|
|
|
|
|
|
beforeEach(()=>{
|
2022-01-28 17:20:34 +05:30
|
|
|
genericBeforeEach();
|
2021-08-19 13:35:10 +05:30
|
|
|
});
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
it('create', async ()=>{
|
|
|
|
|
await getCreateView(edbVarSchemaObj);
|
2021-08-19 13:35:10 +05:30
|
|
|
});
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
it('edit', async ()=>{
|
|
|
|
|
await getEditView(edbVarSchemaObj, getInitData);
|
2021-08-19 13:35:10 +05:30
|
|
|
});
|
|
|
|
|
|
2023-10-23 17:43:17 +05:30
|
|
|
it('properties', async ()=>{
|
|
|
|
|
await getPropertiesView(edbVarSchemaObj, getInitData);
|
2021-08-19 13:35:10 +05:30
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|