mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
Merge branch 'feat/filesystem_and_search' of github.com:toeverything/AFFiNE into feat/filesystem_and_search
This commit is contained in:
@@ -100,6 +100,9 @@ export const StyledNewPageButton = styled(StyledListItem)(() => {
|
||||
left: '0',
|
||||
right: '0',
|
||||
margin: 'auto',
|
||||
':hover': {
|
||||
cursor: 'pointer',
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user