feat: bump blocksuite (#5453)

Change history: https://github.com/toeverything/blocksuite/compare/e3abcbb...master
This commit is contained in:
Peng Xiao
2024-01-03 02:10:19 +00:00
parent 8dc3e3d65c
commit 6cb62ed25d
22 changed files with 169 additions and 178 deletions

View File

@@ -179,7 +179,7 @@ test('can collaborate with other user and name should display when editing', asy
});
const title = getBlockSuiteEditorTitle(page);
await title.focus();
await page.keyboard.press('ArrowDown', { delay: 50 });
{
await expect(page2.getByText('TEST USER')).toBeVisible({
timeout: 2000,

View File

@@ -62,38 +62,28 @@ test('app sidebar router forward/back', async ({ page }) => {
});
}
{
await expect(page.locator('.affine-doc-page-block-title')).toHaveText(
'test3'
);
await expect(getBlockSuiteEditorTitle(page)).toHaveText('test3');
}
await page.click('[data-testid="app-sidebar-arrow-button-back"]');
await page.click('[data-testid="app-sidebar-arrow-button-back"]');
{
await expect(page.locator('.affine-doc-page-block-title')).toHaveText(
'test1'
);
await expect(getBlockSuiteEditorTitle(page)).toHaveText('test1');
}
await page.click('[data-testid="app-sidebar-arrow-button-forward"]');
await page.click('[data-testid="app-sidebar-arrow-button-forward"]');
{
await expect(page.locator('.affine-doc-page-block-title')).toHaveText(
'test3'
);
await expect(getBlockSuiteEditorTitle(page)).toHaveText('test3');
}
await historyShortcut(page, 'goBack');
await historyShortcut(page, 'goBack');
{
await expect(page.locator('.affine-doc-page-block-title')).toHaveText(
'test1'
);
await expect(getBlockSuiteEditorTitle(page)).toHaveText('test1');
}
await historyShortcut(page, 'goForward');
await historyShortcut(page, 'goForward');
{
await expect(page.locator('.affine-doc-page-block-title')).toHaveText(
'test3'
);
await expect(getBlockSuiteEditorTitle(page)).toHaveText('test3');
}
});
// }

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/block-std": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/blocks": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/store": "0.11.0-nightly-202401020419-752a5b8",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/block-std": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/blocks": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/store": "0.11.0-nightly-202401020419-752a5b8",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/block-std": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/blocks": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/store": "0.11.0-nightly-202401020419-752a5b8",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -9,10 +9,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/block-std": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/blocks": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/store": "0.11.0-nightly-202401020419-752a5b8",
"@playwright/test": "^1.39.0",
"express": "^4.18.2",
"http-proxy-middleware": "^3.0.0-beta.1",

View File

@@ -141,7 +141,7 @@ test('create temporary filter by click tag', async ({ page }) => {
await clickNewPageButton(page);
await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('test page');
await page.locator('affine-page-meta-data').click();
await page.locator('page-meta-tags').click();
await page.locator('.add-tag').click();
await page.keyboard.type('TODO Tag');
await page.keyboard.press('Enter');

View File

@@ -44,7 +44,7 @@ const commandsIsVisible = async (page: Page, label: string) => {
async function assertTitle(page: Page, text: string) {
const edgeless = page.locator('affine-edgeless-page');
if (!edgeless) {
const locator = page.locator('.affine-doc-page-block-title').nth(0);
const locator = getBlockSuiteEditorTitle(page);
const actual = await locator.inputValue();
expect(actual).toBe(text);
}
@@ -97,7 +97,7 @@ async function assertResultList(page: Page, texts: string[]) {
async function titleIsFocused(page: Page) {
const edgeless = page.locator('affine-edgeless-page');
if (!edgeless) {
const title = page.locator('.affine-doc-page-block-title');
const title = getBlockSuiteEditorTitle(page);
await expect(title).toBeVisible();
await expect(title).toBeFocused();
}

View File

@@ -7,10 +7,10 @@
"devDependencies": {
"@affine-test/fixtures": "workspace:*",
"@affine-test/kit": "workspace:*",
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/block-std": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/blocks": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/store": "0.11.0-nightly-202401020419-752a5b8",
"@playwright/test": "^1.39.0"
},
"version": "0.11.0"

View File

@@ -184,7 +184,7 @@ export const createPageWithTag = async (
await clickNewPageButton(page);
await getBlockSuiteEditorTitle(page).click();
await getBlockSuiteEditorTitle(page).fill('test page');
await page.locator('affine-page-meta-data').click();
await page.locator('page-meta-tags').click();
await page.locator('.add-tag').click();
for (const name of options.tags) {
await createTag(page, name);

View File

@@ -23,7 +23,7 @@ export async function clickNewPageButton(page: Page) {
}
export function getBlockSuiteEditorTitle(page: Page) {
return page.locator('.affine-doc-page-block-title').nth(0);
return page.locator('doc-title .inline-editor').nth(0);
}
export async function type(page: Page, content: string, delay = 50) {

View File

@@ -31,14 +31,14 @@
"wait-on": "^7.2.0"
},
"devDependencies": {
"@blocksuite/block-std": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/blocks": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/global": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/block-std": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/blocks": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/global": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/icons": "2.1.36",
"@blocksuite/inline": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/lit": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/presets": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/store": "0.11.0-nightly-202312220916-e3abcbb",
"@blocksuite/inline": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/lit": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/presets": "0.11.0-nightly-202401020419-752a5b8",
"@blocksuite/store": "0.11.0-nightly-202401020419-752a5b8",
"@dnd-kit/sortable": "^8.0.0",
"@tomfreudenberg/next-auth-mock": "^0.5.6",
"chromatic": "^9.1.0",