Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Nov 5, 2024
1 parent 64d26c6 commit 583600d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/frontend/component/src/ui/tags/tag-edit-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,5 @@ export const TagEditMenu = ({
} satisfies Partial<MenuProps>;
}, [tag, t, jumpToTag, colors, onTagChange, onTagDelete]);

console.log('menuProps', menuProps);
return <Menu {...menuProps}>{children}</Menu>;
};
6 changes: 5 additions & 1 deletion tests/affine-local/e2e/doc-info-modal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
} from '@affine-test/kit/utils/page-logic';
import {
addCustomProperty,
closeTagsEditor,
ensurePagePropertiesVisible,
expectTagsVisible,
filterTags,
Expand All @@ -28,6 +27,11 @@ const searchAndCreateTag = async (page: Page, name: string) => {
.click();
};

const closeTagsEditor = async (page: Page) => {
await page.getByTestId('info-modal').getByTestId('info-modal-title').click();
await expect(page.getByTestId('tags-editor-popup')).not.toBeVisible();
};

test.beforeEach(async ({ page }) => {
await openHomePage(page);
await clickNewPageButton(page);
Expand Down

0 comments on commit 583600d

Please sign in to comment.