Merge branch 'feat/filesystem_and_search' of github.com:toeverything/AFFiNE into feat/filesystem_and_search

This commit is contained in:
DiamondThree
2022-12-23 18:28:51 +08:00
2 changed files with 9 additions and 4 deletions
@@ -100,6 +100,9 @@ export const StyledNewPageButton = styled(StyledListItem)(() => {
left: '0',
right: '0',
margin: 'auto',
':hover': {
cursor: 'pointer',
},
};
});
+6 -4
View File
@@ -11,10 +11,12 @@ test.describe('Change page mode(Paper or Edgeless)', () => {
// mouse hover trigger animation for showing full switcher
await page.mouse.move((box?.x ?? 0) + 5, (box?.y ?? 0) + 5);
const edgelessButton = page.locator(
'[data-testid=editor-mode-switcher] [title=Edgeless]'
);
await page.waitForTimeout(500);
const edgelessButton = page
.getByTestId('editor-mode-switcher')
.locator('div')
.filter({ hasText: 'Edgeless' })
.first(); // page.getByText('Edgeless').click()
await edgelessButton.click();
// // mouse move to edgeless button