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:
Chi Zhang
2022-12-31 02:32:59 +08:00
committed by GitHub
parent 582aed8744
commit b309e2670d
11 changed files with 42 additions and 61 deletions
+2 -5
View File
@@ -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();