Skip to content

Commit

Permalink
WEB-1910 increase test times
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Ladaria committed Jul 2, 2024
1 parent ac1be67 commit e87fc41
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/__tests__/sheet-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('Sheet', async () => {
await act(() => userEvent.click(closeButton));

await waitForElementToBeRemoved(sheet, {timeout: 5000});
});
}, 30000);

test('RadioListSheet', async () => {
const selectSpy = jest.fn();
Expand Down Expand Up @@ -151,7 +151,7 @@ test('ActionsListSheet', async () => {
);

expect(selectSpy).toHaveBeenCalledWith('1');
});
}, 30000);

test('InfoSheet', async () => {
const TestComponent = () => {
Expand Down Expand Up @@ -200,7 +200,7 @@ test('InfoSheet', async () => {

const items = await within(itemList).findAllByRole('listitem');
expect(items).toHaveLength(2);
});
}, 30000);

test('ActionsSheet', async () => {
const onPressButtonSpy = jest.fn();
Expand Down Expand Up @@ -262,7 +262,7 @@ test('ActionsSheet', async () => {
);

expect(onPressButtonSpy).toHaveBeenCalledWith('SECONDARY');
});
}, 30000);

test('showSheet INFO', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -296,7 +296,7 @@ test('showSheet INFO', async () => {
);

expect(resultSpy).toHaveBeenCalledWith(undefined);
});
}, 30000);

test('showSheet ACTIONS_LIST', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -334,7 +334,7 @@ test('showSheet ACTIONS_LIST', async () => {
);

expect(resultSpy).toHaveBeenCalledWith({action: 'SUBMIT', selectedId: '2'});
});
}, 30000);

test('showSheet ACTIONS_LIST dismiss', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -371,7 +371,7 @@ test('showSheet ACTIONS_LIST dismiss', async () => {
);

expect(resultSpy).toHaveBeenCalledWith({action: 'DISMISS'});
});
}, 30000);

test('showSheet RADIO_LIST', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -448,7 +448,7 @@ test('showSheet RADIO_LIST dismiss', async () => {
);

expect(resultSpy).toHaveBeenCalledWith({action: 'DISMISS'});
});
}, 30000);

test('showSheet ACTIONS', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -493,7 +493,7 @@ test('showSheet ACTIONS', async () => {
);

expect(resultSpy).toHaveBeenCalledWith({action: 'LINK'});
});
}, 30000);

test('showSheet ACTIONS dismiss', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -531,7 +531,7 @@ test('showSheet ACTIONS dismiss', async () => {
);

expect(resultSpy).toHaveBeenCalledWith({action: 'DISMISS'});
});
}, 30000);

test('showSheet fails if SheetRoot is not rendered', async () => {
await expect(
Expand All @@ -543,7 +543,7 @@ test('showSheet fails if SheetRoot is not rendered', async () => {
},
})
).rejects.toThrow('Tried to show a Sheet but the SheetRoot component was not mounted');
});
}, 30000);

test('showSheet fails if there is already a sheet open', async () => {
render(
Expand Down Expand Up @@ -584,7 +584,7 @@ test('showSheet fails if there is already a sheet open', async () => {
},
{timeout: 5000}
);
});
}, 30000);

test('showSheet with native implementation INFO', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -621,7 +621,7 @@ test('showSheet with native implementation INFO', async () => {
});

expect(resultSpy).toHaveBeenCalled();
});
}, 30000);

test('showSheet with native implementation ACTIONS_LIST', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -669,7 +669,7 @@ test('showSheet with native implementation ACTIONS_LIST', async () => {
});

expect(resultSpy).toHaveBeenCalledWith({action: 'SUBMIT', selectedId: '2'});
});
}, 30000);

test('showSheet with native implementation RADIO_LIST', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -718,7 +718,7 @@ test('showSheet with native implementation RADIO_LIST', async () => {
});

expect(resultSpy).toHaveBeenCalledWith({action: 'SUBMIT', selectedId: '2'});
});
}, 30000);

test('showSheet with native implementation ACTIONS', async () => {
const resultSpy = jest.fn();
Expand Down Expand Up @@ -765,7 +765,7 @@ test('showSheet with native implementation ACTIONS', async () => {
});

expect(resultSpy).toHaveBeenCalledWith({action: 'LINK'});
});
}, 30000);

test('showSheet with native implementation fallbacks to web if native fails', async () => {
const nativeImplementation = jest.fn(() =>
Expand Down Expand Up @@ -809,4 +809,4 @@ test('showSheet with native implementation fallbacks to web if native fails', as
);

expect(resultSpy).toHaveBeenCalledWith({action: 'LINK'});
});
}, 30000);

0 comments on commit e87fc41

Please sign in to comment.