Skip to content

Commit

Permalink
fix: formula e2e (#4788)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushusir authored Mar 7, 2025
1 parent 4113714 commit f0df9ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/visual-comparison/sheets/sheets-formula-related.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ test('diff formula related', async () => {

const filename1 = generateSnapshotName('formula-hide-row-current-worksheet');
const screenshot1 = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();
await expect(screenshot1).toMatchSnapshot(filename1, { maxDiffPixels: 7 });
await expect(screenshot1).toMatchSnapshot(filename1, { maxDiffPixels: 17 });

// restore the hidden row
await page.evaluate(async () => {
Expand Down Expand Up @@ -159,7 +159,7 @@ test('diff formula related', async () => {

const filename2 = generateSnapshotName('formula-filter-row-current-worksheet');
const screenshot2 = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();
await expect(screenshot2).toMatchSnapshot(filename2, { maxDiffPixels: 7 });
await expect(screenshot2).toMatchSnapshot(filename2, { maxDiffPixels: 17 });

await page.evaluate(async () => {
const worksheet2 = window.univerAPI.getActiveWorkbook().getSheetByName('formula2');
Expand All @@ -170,7 +170,7 @@ test('diff formula related', async () => {

const filename3 = generateSnapshotName('formula-filter-row-other-worksheet');
const screenshot3 = await page.locator(SHEET_MAIN_CANVAS_ID).screenshot();
await expect(screenshot3).toMatchSnapshot(filename3, { maxDiffPixels: 11 });
await expect(screenshot3).toMatchSnapshot(filename3, { maxDiffPixels: 17 });

await page.waitForTimeout(1000);
await browser.close();
Expand Down

0 comments on commit f0df9ef

Please sign in to comment.