Skip to content

Commit

Permalink
test: fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Nov 30, 2024
1 parent d9b1149 commit 95e803e
Show file tree
Hide file tree
Showing 63 changed files with 259 additions and 238 deletions.
6 changes: 3 additions & 3 deletions common/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
"javascript-obfuscator": "^4.1.1",
"sort-keys": "^5.1.0",
"tailwindcss": "^3.4.15",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vite-plugin-dts": "^4.3.0",
"vite-plugin-external": "^4.3.1",
"vitest": "^2.1.6"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons-svg": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/icons-svg": "^0.2.8",
"@univerjs/protocol": "0.1.39-alpha.45"
}
}
9 changes: 7 additions & 2 deletions examples/src/sheets/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ import { FUniver, LocaleType, LogLevel, Univer, UniverInstanceType, UserManagerS
import { UniverDebuggerPlugin } from '@univerjs/debugger';
import { defaultTheme } from '@univerjs/design';
import { UniverDocsPlugin } from '@univerjs/docs';
import { UniverDocsDrawingPlugin } from '@univerjs/docs-drawing';
import { UniverDocsDrawingUIPlugin } from '@univerjs/docs-drawing-ui';
import { UniverDocsMentionUIPlugin } from '@univerjs/docs-mention-ui';
import { UniverDocsUIPlugin } from '@univerjs/docs-ui';
import { UniverDrawingPlugin } from '@univerjs/drawing';
import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
import { UniverRenderEnginePlugin } from '@univerjs/engine-render';
import { DEFAULT_WORKBOOK_DATA_DEMO } from '@univerjs/mockdata';
Expand All @@ -41,9 +43,10 @@ import { UniverSheetsThreadCommentUIPlugin } from '@univerjs/sheets-thread-comme
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
import { UniverSheetsZenEditorPlugin } from '@univerjs/sheets-zen-editor';
import { UniverThreadCommentUIPlugin } from '@univerjs/thread-comment-ui';

import { UniverUIPlugin } from '@univerjs/ui';
import { enUS, faIR, frFR, ruRU, viVN, zhCN, zhTW } from '../locales';

import { enUS, faIR, frFR, ruRU, viVN, zhCN, zhTW } from '../locales';
import '@univerjs/sheets/facade';
import '@univerjs/ui/facade';
import '@univerjs/docs-ui/facade';
Expand All @@ -53,9 +56,9 @@ import '@univerjs/engine-formula/facade';
import '@univerjs/sheets-filter/facade';
import '@univerjs/sheets-formula/facade';
import '@univerjs/sheets-numfmt/facade';

import '@univerjs/sheets-hyper-link-ui/facade';
import '@univerjs/sheets-thread-comment/facade';

import '../global.css';

/* eslint-disable-next-line node/prefer-global/process */
Expand Down Expand Up @@ -95,7 +98,9 @@ univer.registerPlugin(UniverRPCMainThreadPlugin, {
univer.registerPlugin(UniverDocsPlugin);
univer.registerPlugin(UniverRenderEnginePlugin);
univer.registerPlugin(UniverUIPlugin, { container: 'app' });
univer.registerPlugin(UniverDrawingPlugin);
univer.registerPlugin(UniverDocsUIPlugin);
univer.registerPlugin(UniverDocsDrawingPlugin);
univer.registerPlugin(UniverDocsDrawingUIPlugin);
univer.registerPlugin(UniverDocsMentionUIPlugin);

Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/action-recorder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-filter": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
Expand All @@ -81,7 +81,7 @@
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/mockdata": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-drawing-ui": "workspace:*",
Expand All @@ -78,7 +78,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6",
"vue": "^3.5.12"
},
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uni-formula-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
Expand All @@ -85,7 +85,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uni-sheets-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-drawing-ui": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
Expand All @@ -78,7 +78,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uni-slides-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/slides-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@univerjs/uniui": "workspace:*",
Expand All @@ -76,7 +76,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uniui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
Expand All @@ -83,7 +83,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/data-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@univerjs/sheets": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@rc-component/color-picker": "^2.0.1",
"@rc-component/trigger": "^2.2.5",
"@types/react-mentions": "^4.4.0",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"rc-dialog": "^9.6.0",
Expand Down Expand Up @@ -103,7 +103,7 @@
"react-dom": "18.3.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-drawing-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@univerjs/drawing": "workspace:*",
"@univerjs/drawing-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/ui": "workspace:*",
"clsx": "^2.1.1"
},
Expand All @@ -86,7 +86,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-drawing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-hyper-link-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@univerjs/docs-hyper-link": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/ui": "workspace:*",
"clsx": "^2.1.1"
},
Expand All @@ -83,7 +83,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-hyper-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-mention-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-thread-comment-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/thread-comment": "workspace:*",
"@univerjs/thread-comment-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
Expand All @@ -77,7 +77,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@univerjs/drawing": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/ui": "workspace:*",
"clsx": "^2.1.1"
},
Expand All @@ -93,7 +93,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
4 changes: 2 additions & 2 deletions packages/drawing-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/drawing": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.7",
"@univerjs/icons": "^0.2.8",
"@univerjs/ui": "workspace:*",
"clsx": "^2.1.1"
},
Expand All @@ -82,7 +82,7 @@
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/drawing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/engine-formula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/engine-numfmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
2 changes: 1 addition & 1 deletion packages/engine-render/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion packages/facade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"jsdom": "^24.1.1",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
"space": {
Expand Down
Loading

0 comments on commit 95e803e

Please sign in to comment.