Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix: sheet e2e too long (#4267)
lumixc9c1e5dd72fd
diff --git a/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.ts b/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.tsindex 27fe0883d2..a8bf914635 100644--- a/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.ts+++ b/e2e/visual-comparison/sheets/sheets-visual-comparison.spec.ts@@ -33,7 +33,7 @@ test('diff default sheet toolbar', async () => {await page.waitForTimeout(2000);await page.evaluate(() => window.E2EControllerAPI.loadDefaultSheet());- await page.waitForTimeout(8000);+ await page.waitForTimeout(2000);const filename = generateSnapshotName('default-sheet-fullpage');const screenshot = await page.screenshot({@@ -75,7 +75,6 @@ test('diff demo sheet content', async ({ page }) => {const filename = generateSnapshotName('demo-sheet');const screenshot = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();await expect(screenshot).toMatchSnapshot(filename, { maxDiffPixels: 5 });- await page.waitForTimeout(2000);expect(errored).toBeFalsy();});@@ -100,9 +99,6 @@ test('diff merged cells rendering', async () => {const filename = generateSnapshotName('mergedCellsRendering');const screenshot = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();await expect(screenshot).toMatchSnapshot(filename, { maxDiffPixels: 5 });-- await page.waitForTimeout(2000);- await browser.close();});test('diff merged cells rendering after scrolling', async () => {const browser = await chromium.launch({@@ -164,9 +160,6 @@ test('diff merged cells rendering after scrolling', async () => {const filename = generateSnapshotName('mergedCellsRenderingScrolling');const screenshot = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();await expect(screenshot).toMatchSnapshot(filename, { maxDiffPixels: 5 });-- await page.waitForTimeout(2000);- await browser.close();});/**@@ -190,9 +183,6 @@ test('diff sheet default style rendering', async () => {const filename = generateSnapshotName('defaultstyle');const screenshot = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();await expect(screenshot).toMatchSnapshot(filename, { maxDiffPixels: 5 });-- await page.waitForTimeout(2000);- await browser.close();});test('diff facade sheet hooks', async () => {@@ -226,7 +216,4 @@ test('diff facade sheet hooks', async () => {const filename = generateSnapshotName('facade-sheet-hooks');const screenshot = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();await expect(screenshot).toMatchSnapshot(filename, { maxDiffPixels: 5 });-- await page.waitForTimeout(2000);- await browser.close();});