test(editor): move blocksuite test to tests folder (#10917)
This commit is contained in:
352 files changed
+47
-44
No files matched your search
@@ -175,8 +175,8 @@ jobs:
|
||||
yarn set version $(node -e "console.log(require('./package.json').packageManager.split('@')[1])")
|
||||
git diff --exit-code
|
||||
|
||||
e2e-legacy-blocksuite-test:
|
||||
name: Legacy Blocksuite E2E Test
|
||||
e2e-blocksuite-test:
|
||||
name: E2E BlockSuite Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: optimize_ci
|
||||
if: needs.optimize_ci.outputs.skip == 'false'
|
||||
@@ -197,7 +197,7 @@ jobs:
|
||||
run: yarn workspace @blocksuite/playground build
|
||||
|
||||
- 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
|
||||
if: always()
|
||||
@@ -943,7 +943,7 @@ jobs:
|
||||
- check-git-status
|
||||
- check-yarn-binary
|
||||
- e2e-test
|
||||
- e2e-legacy-blocksuite-test
|
||||
- e2e-blocksuite-test
|
||||
- e2e-mobile-test
|
||||
- unit-test
|
||||
- build-native
|
||||
|
||||
+1
-1
@@ -34,4 +34,4 @@ packages/common/native/fixtures/**
|
||||
packages/frontend/native/index.d.ts
|
||||
packages/frontend/native/index.js
|
||||
packages/frontend/apps/android/App/app/build/**
|
||||
blocksuite/tests-legacy/snapshots
|
||||
tests/blocksuite/snapshots
|
||||
@@ -22,7 +22,7 @@ const colors = [
|
||||
type HighlightType = 'color' | 'background';
|
||||
|
||||
// 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 latestHighlightType: HighlightType = 'background';
|
||||
|
||||
@@ -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
@@ -313,7 +313,7 @@ export default tseslint.config(
|
||||
{
|
||||
files: [
|
||||
'packages/frontend/apps/electron/scripts/**/*',
|
||||
'blocksuite/tests-legacy/**/*.{ts,tsx}',
|
||||
'tests/blocksuite/**/*.{ts,tsx}',
|
||||
'blocksuite/**/__tests__/**/*.{ts,tsx}',
|
||||
],
|
||||
rules: {
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@
|
||||
"packages/frontend/native/index.d.ts",
|
||||
"packages/frontend/native/index.js",
|
||||
"packages/frontend/apps/android/App/app/build/**",
|
||||
"blocksuite/tests-legacy/snapshots"
|
||||
"tests/blocksuite/snapshots"
|
||||
],
|
||||
"rules": {
|
||||
"import/named": "error",
|
||||
@@ -227,7 +227,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["blocksuite/tests-legacy/**/*.ts"],
|
||||
"files": ["tests/blocksuite/**/*.ts"],
|
||||
"rules": {
|
||||
"typescript/ban-ts-comment": "off",
|
||||
"unicorn/prefer-dom-node-dataset": "off",
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ const FILE_NAME = 'test-card-1.png';
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const FILE_PATH = path.resolve(
|
||||
__dirname,
|
||||
`../../playground/public/${FILE_NAME}`
|
||||
`../../../blocksuite/playground/public/${FILE_NAME}`
|
||||
);
|
||||
|
||||
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Reference in new issue
Block a user