mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 13:17:10 +08:00
feat: cloud sync tests (#643)
* fix: fix new page login in e2e test * test: add page-logic to simpliy new-page * test: sync clickPageMoreActions
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { clickPageMoreActions } from './libs/page-logic';
|
||||
|
||||
loadPage();
|
||||
|
||||
@@ -36,11 +37,7 @@ test.describe('Change page mode(Paper or Edgeless)', () => {
|
||||
});
|
||||
|
||||
test('Convert to edgeless by editor header items', async ({ page }) => {
|
||||
await page
|
||||
.getByTestId('editor-header-items')
|
||||
.getByRole('button')
|
||||
.nth(2)
|
||||
.click();
|
||||
await clickPageMoreActions(page);
|
||||
const menusEdgelessItem = page.getByTestId('editor-option-menu-edgeless');
|
||||
await menusEdgelessItem.click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user