fix: increase timeout for executionslist tets

This commit is contained in:
Alex Grozav 2023-07-26 13:32:25 +03:00
parent 2cbf49e8d7
commit ba4c3f3a35

View file

@ -128,7 +128,9 @@ describe('ExecutionsList.vue', () => {
expect(getByTestId('execution-list-empty')).toBeInTheDocument(); expect(getByTestId('execution-list-empty')).toBeInTheDocument();
}); });
it('should handle selection flow when loading more items', async () => { it(
'should handle selection flow when loading more items',
async () => {
const storeSpy = vi const storeSpy = vi
.spyOn(workflowsStore, 'getPastExecutions') .spyOn(workflowsStore, 'getPastExecutions')
.mockResolvedValueOnce(executionsData[0]) .mockResolvedValueOnce(executionsData[0])
@ -184,7 +186,9 @@ describe('ExecutionsList.vue', () => {
expect(getByTestId('selected-executions-info').textContent).toContain(19); expect(getByTestId('selected-executions-info').textContent).toContain(19);
expect(getByTestId('select-visible-executions-checkbox')).toBeInTheDocument(); expect(getByTestId('select-visible-executions-checkbox')).toBeInTheDocument();
expect(queryByTestId('select-all-executions-checkbox')).not.toBeInTheDocument(); expect(queryByTestId('select-all-executions-checkbox')).not.toBeInTheDocument();
}); },
{ timeout: 10000 },
);
it('should show "retry" data when appropriate', async () => { it('should show "retry" data when appropriate', async () => {
vi.spyOn(workflowsStore, 'getPastExecutions').mockResolvedValue(executionsData[0]); vi.spyOn(workflowsStore, 'getPastExecutions').mockResolvedValue(executionsData[0]);