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 -2
View File
@@ -1,11 +1,11 @@
import { test, expect } from '@playwright/test';
import { loadPage } from './libs/load-page';
import { newPage } from './libs/page-logic';
loadPage();
test.describe('local first new page', () => {
test('click btn bew page and open in tab', 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');
const newPageUrl = page.url();