Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix invalid EditorJS block type unstyled used in seed data (#9785)

Jonatan Witoszek19480f5dd7fa
diff --git a/saleor/static/populatedb_data.json b/saleor/static/populatedb_data.json
index e3a878faa7..ac025169aa 100644
--- a/saleor/static/populatedb_data.json
+++ b/saleor/static/populatedb_data.json
@@ -10912,15 +10912,11 @@
"background_image_alt": "",
"description": {
"blocks": [{
- "key": "",
- "data": {},
- "text": "Featured Products. Literally, they are not real products, but the Saleor demo store is a genuine e-commerce leader.",
- "type": "unstyled",
- "depth": 0,
- "entityRanges": [],
- "inlineStyleRanges": []
- }],
- "entityMap": {}
+ "data": {
+ "text": "Featured Products. Literally, they are not real products, but the Saleor demo store is a genuine e-commerce leader."
+ },
+ "type": "paragraph"
+ }]
}
}
},
diff --git a/saleor/tests/fixtures.py b/saleor/tests/fixtures.py
index 02792b93c9..187430ed30 100644
--- a/saleor/tests/fixtures.py
+++ b/saleor/tests/fixtures.py
@@ -5029,11 +5029,7 @@ def description_json():
"built with GraphQL, Django, and ReactJS."
)
},
- "text": (
- "A modular, high performance e-commerce storefront "
- "built with GraphQL, Django, and ReactJS."
- ),
- "type": "unstyled",
+ "type": "paragraph",
"depth": 0,
"entityRanges": [],
"inlineStyleRanges": [],
@@ -5042,7 +5038,7 @@ def description_json():
"key": "",
"data": {},
"text": "",
- "type": "unstyled",
+ "type": "paragraph",
"depth": 0,
"entityRanges": [],
"inlineStyleRanges": [],
@@ -5060,16 +5056,7 @@ def description_json():
"open source e-commerce."
),
},
- "text": (
- "Saleor is a rapidly-growing open source e-commerce platform "
- "that has served high-volume companies from branches "
- "like publishing and apparel since 2012. Based on Python "
- "and Django, the latest major update introduces a modular "
- "front end with a GraphQL API and storefront and dashboard "
- "written in React to make Saleor a full-functionality "
- "open source e-commerce."
- ),
- "type": "unstyled",
+ "type": "paragraph",
"depth": 0,
"entityRanges": [],
"inlineStyleRanges": [],
@@ -5077,8 +5064,7 @@ def description_json():
{
"key": "",
"data": {"text": ""},
- "text": "",
- "type": "unstyled",
+ "type": "paragraph",
"depth": 0,
"entityRanges": [],
"inlineStyleRanges": [],
@@ -5088,8 +5074,7 @@ def description_json():
"data": {
"text": "Get Saleor today!",
},
- "text": "Get Saleor today!",
- "type": "unstyled",
+ "type": "paragraph",
"depth": 0,
"entityRanges": [{"key": 0, "length": 17, "offset": 0}],
"inlineStyleRanges": [],
@@ -5128,11 +5113,7 @@ def other_description_json():
"top of Python 3 and a Django 2 framework."
),
},
- "text": (
- "Saleor is powered by a GraphQL server running on "
- "top of Python 3 and a Django 2 framework."
- ),
- "type": "unstyled",
+ "type": "paragraph",
"depth": 0,
"entityRanges": [],
"inlineStyleRanges": [],