Skip to content

Commit

Permalink
test(e2e): add tests for client (nocobase#3144)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
zhangzhonghe authored Dec 13, 2023
1 parent 35c4b5c commit 3b7c134
Show file tree
Hide file tree
Showing 146 changed files with 20,401 additions and 15,106 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"overrides": [
{
"files": [
"**/e2e/**/*.{ts,js,tsx,jsx}"
"**/e2e/**/*.{ts,js,tsx,jsx}",
"**/__e2e__/**/*.{ts,js,tsx,jsx}"
],
"rules": {
"@typescript-eslint/no-floating-promises": "error"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/build/src/buildDeclaration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import gulp from 'gulp';
import path from 'path';
import fs from 'fs';
import gulpTs from 'gulp-typescript';
import path from 'path';
import { ROOT_PATH } from './constant';

export const buildDeclaration = (cwd: string, targetDir: string) => {
Expand All @@ -17,6 +16,7 @@ export const buildDeclaration = (cwd: string, targetDir: string) => {
`!${path.join(srcPath, '**/demos{,/**}')}`,
`!${path.join(srcPath, '**/__test__{,/**}')}`,
`!${path.join(srcPath, '**/__tests__{,/**}')}`,
`!${path.join(srcPath, '**/__e2e__{,/**}')}`,
`!${path.join(srcPath, '**/*.mdx')}`,
`!${path.join(srcPath, '**/*.md')}`,
`!${path.join(srcPath, '**/*.+(test|e2e|spec).+(js|jsx|ts|tsx)')}`,
Expand Down
1 change: 1 addition & 0 deletions packages/core/build/src/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import path from 'path';
export const globExcludeFiles = [
'!src/**/__tests__',
'!src/**/__test__',
'!src/**/__e2e__',
'!src/**/demos',
'!src/**/fixtures',
'!src/**/*.mdx',
Expand Down
338 changes: 0 additions & 338 deletions packages/core/client/src/__tests__/e2e/action.test.ts

This file was deleted.

561 changes: 0 additions & 561 deletions packages/core/client/src/__tests__/e2e/block.test.ts

This file was deleted.

292 changes: 0 additions & 292 deletions packages/core/client/src/__tests__/e2e/bugs/T-2165.test.ts

This file was deleted.

Loading

0 comments on commit 3b7c134

Please sign in to comment.