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,7 +1,7 @@
import { expect } from '@playwright/test';
import { loadPage } from './libs/load-page';
import { newPage } from './libs/page-logic';
import { getBlockSuiteEditorTitle, newPage } from './libs/page-logic';
import { test } from './libs/playwright';
loadPage();
@@ -11,8 +11,8 @@ test.describe('Local first delete page', () => {
page,
}) => {
await newPage(page);
await page.getByPlaceholder('Title').click();
await page.getByPlaceholder('Title').fill('this is a new page to restore');
await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('this is a new page to restore');
const newPageId = page.url().split('/').reverse()[0];
await page.getByRole('link', { name: 'All pages' }).click();
const cell = page.getByRole('cell', {