Skip to content

Commit

Permalink
CI: fix routing test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Aug 3, 2023
1 parent 564ab10 commit e2397fb
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/__puppeteer__/routing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@ describe('routing', () => {
});

it('load route from URL', async () => {
await goto('/a2a0ccea32023010/1690488081496/1690488851596', { timeout: 60000 });

const video = await page.waitForSelector('video');
await goto('/a2a0ccea32023010/1690488081496/1690488851596', { timeout: 50000 });

// Wait for video src to be set
await page.waitForFunction(
(vid) => vid.getAttribute('src') !== '',
(video) => video.getAttribute('src')?.startsWith('blob:'),
{},
video,
await page.waitForSelector('video'),
);

const videoSrc = await page.evaluate((vid) => vid.getAttribute('src'), video);
expect(videoSrc.startsWith('blob:')).toBeTruthy();
}, 60000);
}, 80000);
});

0 comments on commit e2397fb

Please sign in to comment.