e2e(core): add test for split view (#6133)

This commit is contained in:
Peng Xiao committed 2024-03-18 07:04:06 +00:00
1 parent dc8f351051
commit 5693d90451
4 files changed
+67 -4

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ export function setupEditorFlags(docCollection: DocCollection) {
const syncEditorFlags = () => {
try {
const editorFlags = getCurrentStore().get(appSettingBaseAtom).editorFlags;
Object.entries(editorFlags).forEach(([key, value]) => {
Object.entries(editorFlags ?? {}).forEach(([key, value]) => {
docCollection.awarenessStore.setFlag(
key as keyof BlockSuiteFlags,
value
@@ -18,6 +18,7 @@ export const WorkbenchLink = ({
const handleClick = useCallback(
(event: React.MouseEvent<HTMLAnchorElement>) => {
event.preventDefault();
event.stopPropagation();
// TODO: open this when multi view control is implemented
if (
appSettings.enableMultiView &&