1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2026-03-14 13:55:44 +01:00

Tests temps d'attente

This commit is contained in:
Vincent LAURENT 2021-11-08 01:02:06 +01:00
commit fba94dd476

View file

@ -198,7 +198,7 @@ describe("Signature d'un pdf", () => {
it("Téléchargement du pdf signé", async () => {
await page._client.send('Page.setDownloadBehavior', {behavior: 'allow', downloadPath: './tests/downloads'});
await page.click("#save");
await page.waitForTimeout(500);
await page.waitForTimeout(600);
await expect(require('fs').existsSync('./tests/downloads/document_signe.pdf')).toBe(true);
});
afterAll(async () => {