Skip to content

Commit 3b7c134

Browse files
authored
test(e2e): add tests for client (nocobase#3144)
* test: add tests for lazy loading of association fields * refactor: migrate * test: add tests for page * test: add tests for page menu * test: add tests for tabs * test: add tests for detail block * test: add tests for list block * test: add tests for grid card block * test: add tests for filter collapse block * test: add tests for markdown block * test: add tests for table block * test: add tests for table block * test: add tests for lazy loading of association fields * test: add tests for data scope * test: add tests for filter block * test: add tests for block template * test: add tests for drag and sorting * test: add tests for sorting rules * test: make testing more stable * Revert "test: make testing more stable" This reverts commit 78b7bad. * perf: remove enableToConfig * test: make testing more stable * test: make testing more stable * test: delete newly created records to make tests more stable * fix: fix error when deleting records * test: make testing more stable * test: make testing more stable * test: fix tests * refactor: optimize file structure * test: fix tests * test: fix tests * refactor: optimize description * refactor: optimize description * refactor: use __e2e__ as the root directory for test files * fix: fix build * test: make testing more stable
1 parent 35c4b5c commit 3b7c134

File tree

146 files changed

+20401
-15106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+20401
-15106
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
"overrides": [
6161
{
6262
"files": [
63-
"**/e2e/**/*.{ts,js,tsx,jsx}"
63+
"**/e2e/**/*.{ts,js,tsx,jsx}",
64+
"**/__e2e__/**/*.{ts,js,tsx,jsx}"
6465
],
6566
"rules": {
6667
"@typescript-eslint/no-floating-promises": "error"

packages/core/build/src/buildDeclaration.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import gulp from 'gulp';
2-
import path from 'path';
3-
import fs from 'fs';
42
import gulpTs from 'gulp-typescript';
3+
import path from 'path';
54
import { ROOT_PATH } from './constant';
65

76
export const buildDeclaration = (cwd: string, targetDir: string) => {
@@ -17,6 +16,7 @@ export const buildDeclaration = (cwd: string, targetDir: string) => {
1716
`!${path.join(srcPath, '**/demos{,/**}')}`,
1817
`!${path.join(srcPath, '**/__test__{,/**}')}`,
1918
`!${path.join(srcPath, '**/__tests__{,/**}')}`,
19+
`!${path.join(srcPath, '**/__e2e__{,/**}')}`,
2020
`!${path.join(srcPath, '**/*.mdx')}`,
2121
`!${path.join(srcPath, '**/*.md')}`,
2222
`!${path.join(srcPath, '**/*.+(test|e2e|spec).+(js|jsx|ts|tsx)')}`,

packages/core/build/src/constant.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import path from 'path';
44
export const globExcludeFiles = [
55
'!src/**/__tests__',
66
'!src/**/__test__',
7+
'!src/**/__e2e__',
78
'!src/**/demos',
89
'!src/**/fixtures',
910
'!src/**/*.mdx',

packages/core/client/src/__tests__/e2e/action.test.ts

-338
This file was deleted.

packages/core/client/src/__tests__/e2e/block.test.ts

-561
This file was deleted.

packages/core/client/src/__tests__/e2e/bugs/T-2165.test.ts

-292
This file was deleted.

0 commit comments

Comments
 (0)