mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
test: make change-page-mode test stable
This commit is contained in:
@@ -10,7 +10,9 @@ test.describe('Change page mode(Paper or Edgeless)', () => {
|
||||
await expect(box?.x).not.toBeUndefined();
|
||||
|
||||
// mouse hover trigger animation for showing full switcher
|
||||
await page.mouse.move((box?.x ?? 0) + 5, (box?.y ?? 0) + 5);
|
||||
// await page.mouse.move((box?.x ?? 0) + 5, (box?.y ?? 0) + 5);
|
||||
await page.mouse.move((box?.x ?? 0) + 10, (box?.y ?? 0) + 10);
|
||||
|
||||
// await page.waitForTimeout(1000);
|
||||
const edgelessButton = page.getByTestId('edgeless-item'); // page.getByText('Edgeless').click()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user