Added support to preserve the workspace, query windows, and pgAdmin state during an abrupt shutdown or restart. #3319

This commit is contained in:
Yogesh Mahajan
2025-06-05 16:50:38 +05:30
committed by GitHub
parent c2ef9d06ca
commit 68e559c613
44 changed files with 995 additions and 253 deletions
@@ -23,6 +23,7 @@ import url_for from 'sources/url_for';
import Theme from '../../../pgadmin/static/js/Theme';
import SchemaDiffComponent from '../../../pgadmin/tools/schema_diff/static/js/components/SchemaDiffComponent';
import SchemaDiff from '../../../pgadmin/tools/schema_diff/static/js/SchemaDiffModule';
import { ApplicationStateProvider } from '../../../pgadmin/settings/static/ApplicationStateProvider';
describe('Schema Diff Component', () => {
@@ -63,10 +64,12 @@ describe('Schema Diff Component', () => {
await act(async ()=>{
render(
<Theme>
<SchemaDiffComponent
params={{ transId: params.transId, pgAdmin: pgWindow.pgAdmin }}
>
</SchemaDiffComponent>
<ApplicationStateProvider>
<SchemaDiffComponent
params={{ transId: params.transId, pgAdmin: pgWindow.pgAdmin }}
>
</SchemaDiffComponent>
</ApplicationStateProvider>
</Theme>
);
});