mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
2e14e9939e
6
.github/workflows/e2e.yml
vendored
6
.github/workflows/e2e.yml
vendored
@ -134,7 +134,7 @@ jobs:
|
||||
name: e2e-report-${{ github.job }} # 为了防止在多个任务中存在冲突
|
||||
path: ./storage/playwright/tests-report-blob/blob-*/*
|
||||
|
||||
timeout-minutes: 60
|
||||
timeout-minutes: 180
|
||||
|
||||
plugin-workflow:
|
||||
name: plugin-workflow
|
||||
@ -214,7 +214,7 @@ jobs:
|
||||
name: e2e-report-${{ github.job }} # 为了防止在多个任务中存在冲突
|
||||
path: ./storage/playwright/tests-report-blob/blob-*/*
|
||||
|
||||
timeout-minutes: 60
|
||||
timeout-minutes: 180
|
||||
|
||||
plugin-data-source-main:
|
||||
name: plugin-data-source-main
|
||||
@ -294,7 +294,7 @@ jobs:
|
||||
name: e2e-report-${{ github.job }} # 为了防止在多个任务中存在冲突
|
||||
path: ./storage/playwright/tests-report-blob/blob-*/*
|
||||
|
||||
timeout-minutes: 60
|
||||
timeout-minutes: 180
|
||||
|
||||
comment-on-pr:
|
||||
name: Comment on PR
|
||||
|
@ -165,7 +165,6 @@ export const useBlockHeight = () => {
|
||||
return height;
|
||||
};
|
||||
export const useTableSize = () => {
|
||||
const [height, setTableHeight] = useState<number>();
|
||||
const [width, setTableWidth] = useState<number>();
|
||||
const elementRef = useRef<HTMLDivElement>(null);
|
||||
const targetHeight = useTableHeight();
|
||||
@ -176,7 +175,6 @@ export const useTableSize = () => {
|
||||
const tableContentRect = elementRef.current.querySelector('.ant-table')?.getBoundingClientRect();
|
||||
if (!tableContentRect) return;
|
||||
setTableWidth(clientRect.width);
|
||||
setTableHeight(targetHeight);
|
||||
}, 100),
|
||||
[targetHeight],
|
||||
);
|
||||
@ -190,8 +188,7 @@ export const useTableSize = () => {
|
||||
);
|
||||
|
||||
useEventListener('resize', calcTableSize);
|
||||
|
||||
return { height, width, tableSizeRefCallback };
|
||||
return { height: targetHeight, width, tableSizeRefCallback };
|
||||
};
|
||||
|
||||
const hasActionContainerInParentChain = (schema) => {
|
||||
|
@ -17,6 +17,8 @@ export const defineConfig = (config?: PlaywrightTestConfig) => {
|
||||
timeout: 10 * 1000,
|
||||
},
|
||||
|
||||
globalTimeout: 60 * 60 * 1000,
|
||||
|
||||
// Look for test files in the "tests" directory, relative to this configuration file.
|
||||
testDir: 'packages',
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user