fix: title behavior on BlockSuite editor (#1264)
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user