mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
862f101772
1. Replace the current layout library wcDocker with ReactJS based rc-dock. #6479 2. Have close buttons on individual panel tabs instead of common. #2821 3. Changes in the context menu on panel tabs - Add close, close all and close others menu items. #5394 4. Allow closing all the tabs, including SQL and Properties. #4733 5. Changes in docking behaviour of different tabs based on user requests and remove lock layout menu. 6. Fix an issue where the scroll position of panels was not remembered on Firefox. #2986 7. Reset layout now will not require page refresh and is done spontaneously. 8. Use the zustand store for storing preferences instead of plain JS objects. This will help reflecting preferences immediately. 9. The above fix incorrect format (no indent) of SQL stored functions/procedures. #6720 10. New version check is moved to an async request now instead of app start to improve startup performance. 11. Remove jQuery and Bootstrap completely. 12. Replace jasmine and karma test runner with jest. Migrate all the JS test cases to jest. This will save time in writing and debugging JS tests. 13. Other important code improvements and cleanup.
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
/////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2023, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
import React from 'react';
|
|
|
|
import { render, screen } from '@testing-library/react';
|
|
import { withTheme } from '../fake_theme';
|
|
import Loader from 'sources/components/Loader';
|
|
|
|
|
|
/* MUI Components need to be wrapped in Theme for theme vars */
|
|
describe('Loader', ()=>{
|
|
let loaderInst,
|
|
ThemedLoader = withTheme(Loader);
|
|
|
|
beforeEach(()=>{
|
|
loaderInst = render(<ThemedLoader message={'loading'} />);
|
|
});
|
|
|
|
it('init', ()=>{
|
|
expect(screen.getByText('loading')).toBeInTheDocument();
|
|
});
|
|
|
|
it('no message', ()=>{
|
|
loaderInst.rerender(<ThemedLoader message={''} />);
|
|
expect(loaderInst.container).toBeEmptyDOMElement();
|
|
});
|
|
|
|
it('change message', ()=>{
|
|
loaderInst.rerender(<ThemedLoader message={'test message'} />);
|
|
expect(screen.getByText('test message')).toBeInTheDocument();
|
|
});
|
|
});
|