fix: title behavior on BlockSuite editor (#1264)

This commit is contained in:
Himself65
2023-03-02 11:38:17 -06:00
committed by GitHub
parent 32a1b7b8a3
commit eeb636e81c
20 changed files with 155 additions and 126 deletions

View File

@@ -1,14 +1,18 @@
import { expect } from '@playwright/test';
import { loadPage } from './libs/load-page';
import { clickPageMoreActions, newPage } from './libs/page-logic';
import {
clickPageMoreActions,
getBlockSuiteEditorTitle,
newPage,
} from './libs/page-logic';
import { test } from './libs/playwright';
loadPage();
test.describe('Local first export page', () => {
test.skip('New a page ,then open it and export html', async ({ page }) => {
await newPage(page);
await page.getByPlaceholder('Title').click();
await getBlockSuiteEditorTitle(page).click();
await page
.getByPlaceholder('Title')
.fill('this is a new page to export html content');
@@ -38,7 +42,7 @@ test.describe('Local first export page', () => {
page,
}) => {
await newPage(page);
await page.getByPlaceholder('Title').click();
await getBlockSuiteEditorTitle(page).click();
await page
.getByPlaceholder('Title')
.fill('this is a new page to export markdown content');