test(editor): enable basic test for cross platform (#11667)

This commit is contained in:
Saul-Mirone
2025-04-14 07:36:56 +00:00
parent ee15b364d1
commit efecce9bf2
6 changed files with 13 additions and 10 deletions

View File

@@ -0,0 +1,71 @@
{
"children": [
{
"children": [
{
"children": [
],
"flavour": "affine:paragraph",
"id": "2",
"props": {
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "abc "
},
{
"attributes": {
"link": "https://google.com"
},
"insert": "https://google.com"
},
{
"insert": " "
}
]
},
"type": "text"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"id": "1",
"props": {
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
},
"type": "block",
"version": 2
}

View File

@@ -0,0 +1,62 @@
{
"children": [
{
"children": [
{
"children": [
],
"flavour": "affine:paragraph",
"id": "2",
"props": {
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "hello"
}
]
},
"type": "text"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"id": "1",
"props": {
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
},
"type": "block",
"version": 2
}