Skip to content

Commit 038f8e8

Browse files
committed
XWIKI-23699: Move packages related to blocknote from Cristal
- Install npm as it is required for some packages - Add missing folder required for blocknote-react test - Install playwright before running the blocknote-react tests
1 parent e845ea4 commit 038f8e8

File tree

5 files changed

+48
-2
lines changed

5 files changed

+48
-2
lines changed

xwiki-platform-core/xwiki-platform-node/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@
6565
<installDirectory>${basedir}/target</installDirectory>
6666
</configuration>
6767
</execution>
68+
<!-- Some tools are still using npm, so it is important to also have it installed. -->
69+
<execution>
70+
<id>default-install-node-and-nnpm</id>
71+
<phase>process-resources</phase>
72+
<goals>
73+
<goal>install-node-and-npm</goal>
74+
</goals>
75+
<configuration>
76+
<nodeVersion>${node.version}</nodeVersion>
77+
<npmVersion>${npm.version}</npmVersion>
78+
<installDirectory>${basedir}/target</installDirectory>
79+
</configuration>
80+
</execution>
6881
<execution>
6982
<id>default-install-node-and-pnpm</id>
7083
<phase>process-resources</phase>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/playwright/
1+
/playwright/.cache
22
/test-results/

xwiki-platform-core/xwiki-platform-node/src/main/node/editors/blocknote-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"build": "vite build",
3030
"clean": "rimraf dist",
3131
"lint": "eslint \"./src/**/*.{ts,tsx,vue}\" --max-warnings=0",
32-
"test": "playwright test -c playwright-ct.config.ts",
32+
"test": "playwright install; playwright test -c playwright-ct.config.ts",
3333
"typecheck": "tsc"
3434
},
3535
"types": "./dist/index.d.ts",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Testing Page</title>
7+
</head>
8+
<body>
9+
<div id="root"></div>
10+
<script type="module" src="./index.tsx"></script>
11+
</body>
12+
</html>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* See the NOTICE file distributed with this work for additional
3+
* information regarding copyright ownership.
4+
*
5+
* This is free software; you can redistribute it and/or modify it
6+
* under the terms of the GNU Lesser General Public License as
7+
* published by the Free Software Foundation; either version 2.1 of
8+
* the License, or (at your option) any later version.
9+
*
10+
* This software is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
* Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Lesser General Public
16+
* License along with this software; if not, write to the Free
17+
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18+
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19+
*/
20+
21+
// This file is required as it is the base import for Playwright

0 commit comments

Comments
 (0)