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

View File

@@ -1,5 +1,6 @@
import { test, expect } from '@playwright/test';
import { loadPage } from './libs/load-page';
import { newPage } from './libs/page-logic';
loadPage();
@@ -7,7 +8,7 @@ test.describe('Local first delete page', () => {
test('New a page , then delete it in all pages, permanently delete it', async ({
page,
}) => {
await page.getByText('New Page').click();
await newPage(page);
await page.getByPlaceholder('Title').click();
await page.getByPlaceholder('Title').fill('this is a new page to restore');
const originPageUrl = page.url();