From 19bac95808f7ab78552e6ad23d5e46b567611bf7 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 22 Oct 2024 15:40:51 +0200 Subject: [PATCH] Comment unused lines --- e2e/download.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e2e/download.spec.ts b/e2e/download.spec.ts index ae7899e..145650f 100644 --- a/e2e/download.spec.ts +++ b/e2e/download.spec.ts @@ -1,5 +1,4 @@ import { test, expect } from '@playwright/test'; -import { readFileSync } from 'fs'; import path, { dirname } from 'path'; import { fileURLToPath } from 'url'; @@ -23,10 +22,10 @@ test('download a file', async ({ page, browserName }) => { await page.locator('.sheets-container > .backdrop').click(); await page.getByPlaceholder('CID').click(); await page.getByPlaceholder('CID').fill(cid); - const page1Promise = page.waitForEvent('popup'); + // const page1Promise = page.waitForEvent('popup'); const downloadPromise = page.waitForEvent('download'); await page.locator('div').filter({ hasText: /^Download a fileDownload$/ }).getByRole('button').click(); - const page1 = await page1Promise; + // const page1 = await page1Promise; const download = await downloadPromise; expect(await download.failure()).toBeNull() }); \ No newline at end of file