Skip to content

Commit

Permalink
Merge pull request #534 from newfold-labs/cypress-editor-step-tests
Browse files Browse the repository at this point in the history
Add Tests for SiteGen Editor Step
  • Loading branch information
arunshenoy99 committed Apr 10, 2024
2 parents 23dff76 + a6fa506 commit 2222ba0
Show file tree
Hide file tree
Showing 12 changed files with 1,759 additions and 117 deletions.
2 changes: 1 addition & 1 deletion build/2.1.9/619.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/OnboardingSPA/steps/SiteGen/Preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const SiteGenPreview = () => {
setHeaderActiveView( HEADER_SITEGEN );
setDrawerActiveView( false );
updateInitialize( true );
setIsHeaderNavigationEnabled( false );
}, [] );

useEffect( () => {
Expand Down
128 changes: 128 additions & 0 deletions tests/cypress/fixtures/customize-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"design": {
"name": "Modern Foodie",
"style": {
"aesthetics": "modern",
"fonts_heading": "Arial",
"fonts_content": "Times New Roman",
"spacing": 6,
"radius": 4
},
"color_palette": {
"base": "#F0F0F0",
"contrast": "#333333",
"primary": "#09728C",
"secondary": "#C79E10",
"tertiary": "#F5EBB8",
"header_background": "#09728C",
"header_foreground": "#F5EBB8",
"header_titles": "#F5EBB8",
"secondary_background": "#09728C",
"secondary_foreground": "#F5EBB8"
}
},
"colorPalettes": [
{
"base": "#3D352A",
"contrast": "#F2E9E1",
"primary": "#8C6D5C",
"tertiary": "#D9C7B1",
"header_background": "#F2E9E1",
"header_foreground": "#3D352A",
"header_tiles": "#8C6D5C",
"secondary_background": "#D9C7B1",
"secondary_foreground": "#3D352A"
},
{
"base": "#2E383F",
"contrast": "#F2F2F2",
"primary": "#6D7D87",
"tertiary": "#B1C2CA",
"header_background": "#F2F2F2",
"header_foreground": "#2E383F",
"header_tiles": "#6D7D87",
"secondary_background": "#B1C2CA",
"secondary_foreground": "#2E383F"
},
{
"base": "#2A3D35",
"contrast": "#E1F2E9",
"primary": "#5C8C6D",
"tertiary": "#B1D9C7",
"header_background": "#E1F2E9",
"header_foreground": "#2A3D35",
"header_tiles": "#5C8C6D",
"secondary_background": "#B1D9C7",
"secondary_foreground": "#2A3D35"
},
{
"base": "#3F2E38",
"contrast": "#F2F2F2",
"primary": "#876D7D",
"tertiary": "#CAB1C2",
"header_background": "#F2F2F2",
"header_foreground": "#3F2E38",
"header_tiles": "#876D7D",
"secondary_background": "#CAB1C2",
"secondary_foreground": "#3F2E38"
},
{
"base": "#352A3D",
"contrast": "#E9E1F2",
"primary": "#6D5C8C",
"tertiary": "#C7B1D9",
"header_background": "#E9E1F2",
"header_foreground": "#352A3D",
"header_tiles": "#6D5C8C",
"secondary_background": "#C7B1D9",
"secondary_foreground": "#352A3D"
}
],
"designStyles": [
{
"aesthetics": "modern",
"font_heading": "poppins",
"font_content": "mulish",
"spacing": 2,
"radius": 5,
"font_heading_name": "Poppins",
"font_content_name": "Mulish"
},
{
"aesthetics": "vintage",
"font_heading": "playfair",
"font_content": "forum",
"spacing": 3,
"radius": 10,
"font_heading_name": "Playfair Display",
"font_content_name": "Forum"
},
{
"aesthetics": "retro",
"font_heading": "oswald",
"font_content": "roboto-slab",
"spacing": 4,
"radius": 8,
"font_heading_name": "Oswald",
"font_content_name": "Roboto Slab"
},
{
"aesthetics": "minimalist",
"font_heading": "raleway",
"font_content": "source-sans-pro",
"spacing": 2,
"radius": 5,
"font_heading_name": "Raleway",
"font_content_name": "Source Sans Pro"
},
{
"aesthetics": "typographic",
"font_heading": "jost",
"font_content": "merriweather",
"spacing": 3,
"radius": 10,
"font_heading_name": "Jost",
"font_content_name": "Merriweather"
}
]
}
Loading

0 comments on commit 2222ba0

Please sign in to comment.