test(editor): move blocksuite test to tests folder (#10917)

This commit is contained in:
Saul-Mirone committed 2025-03-17 06:40:25 +00:00
1 parent 0f83566504
commit d5a5df5e49
352 files changed
+47 -44

No files matched your search

+4 -4
View File
@@ -175,8 +175,8 @@ jobs:
yarn set version $(node -e "console.log(require('./package.json').packageManager.split('@')[1])") yarn set version $(node -e "console.log(require('./package.json').packageManager.split('@')[1])")
git diff --exit-code git diff --exit-code
e2e-legacy-blocksuite-test: e2e-blocksuite-test:
name: Legacy Blocksuite E2E Test name: E2E BlockSuite Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: optimize_ci needs: optimize_ci
if: needs.optimize_ci.outputs.skip == 'false' if: needs.optimize_ci.outputs.skip == 'false'
@@ -197,7 +197,7 @@ jobs:
run: yarn workspace @blocksuite/playground build run: yarn workspace @blocksuite/playground build
- name: Run playwright tests - name: Run playwright tests
run: yarn workspace @blocksuite/legacy-e2e test --forbid-only --shard=${{ matrix.shard }}/${{ strategy.job-total }} run: yarn workspace @affine-test/blocksuite test --forbid-only --shard=${{ matrix.shard }}/${{ strategy.job-total }}
- name: Upload test results - name: Upload test results
if: always() if: always()
@@ -943,7 +943,7 @@ jobs:
- check-git-status - check-git-status
- check-yarn-binary - check-yarn-binary
- e2e-test - e2e-test
- e2e-legacy-blocksuite-test - e2e-blocksuite-test
- e2e-mobile-test - e2e-mobile-test
- unit-test - unit-test
- build-native - build-native
+1 -1
View File
@@ -34,4 +34,4 @@ packages/common/native/fixtures/**
packages/frontend/native/index.d.ts packages/frontend/native/index.d.ts
packages/frontend/native/index.js packages/frontend/native/index.js
packages/frontend/apps/android/App/app/build/** packages/frontend/apps/android/App/app/build/**
blocksuite/tests-legacy/snapshots tests/blocksuite/snapshots
@@ -22,7 +22,7 @@ const colors = [
type HighlightType = 'color' | 'background'; type HighlightType = 'color' | 'background';
// TODO(@fundon): these recent settings should be added to the dropdown menu // TODO(@fundon): these recent settings should be added to the dropdown menu
// blocksuite/tests-legacy/e2e/format-bar.spec.ts#253 // tests/blocksutie/e2e/format-bar.spec.ts#253
// //
// let latestHighlightColor: string | null = null; // let latestHighlightColor: string | null = null;
// let latestHighlightType: HighlightType = 'background'; // let latestHighlightType: HighlightType = 'background';
-10
View File
@@ -1,10 +0,0 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "./e2e",
"outDir": "./dist",
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
},
"include": ["./e2e"],
"references": [{ "path": "../affine/all" }, { "path": "../integration-test" }]
}
+1 -1
View File
@@ -313,7 +313,7 @@ export default tseslint.config(
{ {
files: [ files: [
'packages/frontend/apps/electron/scripts/**/*', 'packages/frontend/apps/electron/scripts/**/*',
'blocksuite/tests-legacy/**/*.{ts,tsx}', 'tests/blocksuite/**/*.{ts,tsx}',
'blocksuite/**/__tests__/**/*.{ts,tsx}', 'blocksuite/**/__tests__/**/*.{ts,tsx}',
], ],
rules: { rules: {
+2 -2
View File
@@ -35,7 +35,7 @@
"packages/frontend/native/index.d.ts", "packages/frontend/native/index.d.ts",
"packages/frontend/native/index.js", "packages/frontend/native/index.js",
"packages/frontend/apps/android/App/app/build/**", "packages/frontend/apps/android/App/app/build/**",
"blocksuite/tests-legacy/snapshots" "tests/blocksuite/snapshots"
], ],
"rules": { "rules": {
"import/named": "error", "import/named": "error",
@@ -227,7 +227,7 @@
} }
}, },
{ {
"files": ["blocksuite/tests-legacy/**/*.ts"], "files": ["tests/blocksuite/**/*.ts"],
"rules": { "rules": {
"typescript/ban-ts-comment": "off", "typescript/ban-ts-comment": "off",
"unicorn/prefer-dom-node-dataset": "off", "unicorn/prefer-dom-node-dataset": "off",
@@ -45,7 +45,7 @@ const FILE_NAME = 'test-card-1.png';
const __dirname = path.dirname(fileURLToPath(import.meta.url)); const __dirname = path.dirname(fileURLToPath(import.meta.url));
const FILE_PATH = path.resolve( const FILE_PATH = path.resolve(
__dirname, __dirname,
`../../playground/public/${FILE_NAME}` `../../../blocksuite/playground/public/${FILE_NAME}`
); );
function getAttachment(page: Page) { function getAttachment(page: Page) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 352 files, more files were not shown because too many files have changed in this diff. Show more