mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
fix(core): open template doc on sidebar template entrance (#9766)
close AF-2135, AF-2136, AF-2138, AF-2133
This commit is contained in:
@@ -216,7 +216,7 @@ test('set default template for journal', async ({ page }) => {
|
||||
await expect(page.getByText('This is a journal template doc')).toBeVisible();
|
||||
});
|
||||
|
||||
test('create doc from template via sidebar entrance', async ({ page }) => {
|
||||
test('open template doc from sidebar template entrance', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await createDocAndMarkAsTemplate(page, 'Test Template', async () => {
|
||||
await page.keyboard.type('# Template');
|
||||
@@ -235,7 +235,7 @@ test('create doc from template via sidebar entrance', async ({ page }) => {
|
||||
await expect(page.getByText('This is a template doc')).toBeVisible();
|
||||
});
|
||||
|
||||
test('create template from sidebar template entrance', async ({ page }) => {
|
||||
test('create template doc from sidebar template entrance', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await page.getByTestId('sidebar-template-doc-entrance').click();
|
||||
await page.getByTestId('template-doc-item-create').click();
|
||||
|
||||
Reference in New Issue
Block a user