mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1. Intermittently failing test cases.
2. Dialog vertical position should be more on the upper side. 3. File not supported error is not showing. refs #7313
This commit is contained in:
committed by
Akshay Joshi
parent
96c360e728
commit
a7fd7d67b3
@@ -98,7 +98,6 @@ describe('FileManger', ()=>{
|
||||
beforeAll(()=>{
|
||||
mount = createMount();
|
||||
networkMock = new MockAdapter(axios);
|
||||
networkMock.onPost('/file_manager/init').reply(200, {'data': configData});
|
||||
networkMock.onPost(`/file_manager/filemanager/${transId}/`).reply(200, {data: {result: files}});
|
||||
networkMock.onPost(`/file_manager/save_file_dialog_view/${transId}`).reply(200, {});
|
||||
networkMock.onDelete(`/file_manager/delete_trans_id/${transId}`).reply(200, {});
|
||||
@@ -130,14 +129,17 @@ describe('FileManger', ()=>{
|
||||
};
|
||||
|
||||
it('init', (done)=>{
|
||||
networkMock.onPost('/file_manager/init').reply(200, {'data': configData});
|
||||
let ctrl = ctrlMount({});
|
||||
setTimeout(()=>{
|
||||
ctrl.update();
|
||||
ctrl.find('button[name="menu-options"]').simulate('click');
|
||||
ctrl.find('Memo(MenuItem)[data-label="List View"]').simulate('click');
|
||||
ctrl.update();
|
||||
expect(ctrl.find('ListView').length).toBe(1);
|
||||
expect(ctrl.find('GridView').length).toBe(0);
|
||||
expect(ctrl.find('InputText[data-label="file-path"]').prop('value')).toBe('/home/current');
|
||||
ctrl.find('button[name="menu-options"]').simulate('click');
|
||||
ctrl.update();
|
||||
ctrl.find('Memo(MenuItem)[data-label="Grid View"]').simulate('click');
|
||||
setTimeout(()=>{
|
||||
ctrl.update();
|
||||
|
||||
Reference in New Issue
Block a user