File tree Expand file tree Collapse file tree
assets/internalapi/asset/8a9dadf4eea61892ec6908b1c99e4961.svg Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const getIframeBody = () => {
2121describe ( "Scratch" , ( ) => {
2222 beforeEach ( ( ) => {
2323 cy . visit ( origin ) ;
24- cy . findByText ( "blank -scratch" ) . click ( ) ;
24+ cy . findByText ( "cool -scratch" ) . click ( ) ;
2525 } ) ;
2626
2727 it ( "loads Scratch in an iframe" , ( ) => {
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11{
2- "identifier" : " blank -scratch" ,
2+ "identifier" : " cool -scratch.json " ,
33 "project_type" : " code_editor_scratch" ,
44 "locale" : " en" ,
5- "name" : " Blank Scratch Project" ,
5+ "name" : " Sample Scratch Project" ,
66 "user_id" : null ,
77 "instructions" : {
88 "content" : " instructions go here" ,
Original file line number Diff line number Diff line change 6060 < a href ="# " data-project ="blank-python-starter "> blank-python-starter</ a >
6161 < a href ="# " data-project ="cool-python "> cool-python</ a >
6262 < a href ="# " data-project ="python-plotly "> python-plotly</ a >
63- < a href ="# " data-project ="blank -scratch "> blank -scratch</ a >
63+ < a href ="# " data-project ="cool -scratch "> cool -scratch</ a >
6464 </ div >
6565 < div id ="editor-component "> </ div >
6666 < p id ="results "> </ p >
114114 newWebComp . setAttribute ( "code" , "" ) ;
115115 newWebComp . setAttribute ( "class" , "editor-wc" ) ;
116116 newWebComp . setAttribute ( "host_styles" , JSON . stringify ( [ ] ) ) ;
117+ const scratchApiEndpoint = new URL ( "." , window . location . href )
118+ . href
119+ . replace ( / \/ $ / , "" ) ;
120+ newWebComp . setAttribute ( "scratch_api_endpoint" , scratchApiEndpoint ) ;
117121
118122 queryParams . forEach ( ( value , key ) => {
119123 newWebComp . setAttribute ( key , value ) ;
You can’t perform that action at this time.
0 commit comments