1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

Tests temps d'attente

This commit is contained in:
Vincent LAURENT 2021-11-08 01:02:06 +01:00
parent 2e01794fff
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 () => {