Skip to content

Commit

Permalink
chore: update build.yml to ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antv committed Aug 28, 2024
1 parent 1945d18 commit fe3695e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
File renamed without changes.
6 changes: 2 additions & 4 deletions tests/g6/plugins/plugins-minimap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ test.describe('plugin minimap', () => {
// wheel on to zoom
await page.mouse.move(250, 250);

// 在 github action 中执行时,滚动的距离需要更大
// In github action, the scroll distance needs to be larger
await page.mouse.wheel(0, process.env.CI ? 20 : 10);
await page.mouse.wheel(0, 10);

await expect(page).toHaveScreenshot({ clip, maxDiffPixels: 100 });

await page.mouse.wheel(0, process.env.CI ? -40 : -20);
await page.mouse.wheel(0, -20);

await expect(page).toHaveScreenshot({ clip, maxDiffPixels: 100 });

Expand Down

0 comments on commit fe3695e

Please sign in to comment.