mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(web): minor bug fixes (#9696)
Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
@@ -230,6 +230,13 @@ export const addDatabase = async (page: Page, title?: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
export const addCodeBlock = async (page: Page) => {
|
||||
await page.keyboard.press('/');
|
||||
await expect(page.locator('affine-slash-menu .slash-menu')).toBeVisible();
|
||||
await page.keyboard.type('code');
|
||||
await page.getByTestId('Code Block').click();
|
||||
};
|
||||
|
||||
export const addDatabaseRow = async (page: Page, databaseTitle: string) => {
|
||||
const db = page.locator(`affine-database-table`, {
|
||||
has: page.locator(`affine-database-title:has-text("${databaseTitle}")`),
|
||||
|
||||
Reference in New Issue
Block a user