feat(core): add page width property (#8775)

close AF-1655
This commit is contained in:
JimmFly
2024-11-12 02:58:14 +00:00
parent 713551fbf1
commit 6fe2e42490
16 changed files with 190 additions and 22 deletions

View File

@@ -130,6 +130,7 @@ test('property table reordering', async ({ page }) => {
'Updated',
'Created by',
'Edgeless theme',
'Page width',
'Number',
'Date',
'Checkbox',
@@ -174,6 +175,7 @@ test('page info show more will show all properties', async ({ page }) => {
'Updated',
'Created by',
'Edgeless theme',
'Page width',
'Text',
'Number',
'Date',

View File

@@ -137,7 +137,7 @@ test('Create a new page without keyword', async ({ page }) => {
await waitForEditorLoad(page);
await clickNewPageButton(page);
await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.getByText('New page', { exact: true });
await addNewPage.click();
await page.waitForTimeout(300);
await assertTitle(page, '');
@@ -242,7 +242,7 @@ test('Focus title after creating a new page', async ({ page }) => {
await waitForEditorLoad(page);
await clickNewPageButton(page);
await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.getByText('New page', { exact: true });
await addNewPage.click();
await titleIsFocused(page);
});
@@ -275,7 +275,7 @@ test('assert the recent browse pages are on the recent list', async ({
// create second page
await openQuickSearchByShortcut(page);
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.getByText('New page', { exact: true });
await addNewPage.click();
await waitForEditorLoad(page);
{
@@ -315,7 +315,7 @@ test('assert the recent browse pages are on the recent list', async ({
await waitForEditorLoad(page);
await openQuickSearchByShortcut(page);
{
const addNewPage = page.locator('[cmdk-item] >> text=New Page');
const addNewPage = page.getByText('New page', { exact: true });
await addNewPage.click();
}
await waitForEditorLoad(page);

View File

@@ -68,7 +68,7 @@ test('Change layout width', async ({ page }) => {
await waitForEditorLoad(page);
await openEditorSetting(page);
await page.getByTestId('full-width-layout-trigger').click();
await page.getByTestId('full-width-trigger').click();
const editorWrapper = page.locator('.editor-wrapper');
const className = await editorWrapper.getAttribute('class');