fix: title behavior on BlockSuite editor (#1264)

This commit is contained in:
Himself65 authored and GitHub committed 2023-03-02 17:38:17 +00:00
1 parent 32a1b7b8a3
commit eeb636e81c
20 files changed
+155 -126

No files matched your search

+3 -3
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();
@@ -15,8 +15,8 @@ test.describe('local first new page', () => {
test('click btn bew page and find it in all pages', async ({ page }) => {
await newPage(page);
await page.getByPlaceholder('Title').click();
await page.getByPlaceholder('Title').fill('this is a new page');
await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('this is a new page');
await page.getByRole('link', { name: 'All pages' }).click();
const cell = page.getByRole('cell', { name: 'this is a new page' });
expect(cell).not.toBeUndefined();