@@ -37,13 +37,13 @@ describe("Running the code with skulpt", () => {
3737 cy . get ( "editor-wc" )
3838 . shadow ( )
3939 . find ( ".skulptrunner" )
40- . contains ( ".react-tabs__tab" , "output.visualOutput " )
40+ . contains ( ".react-tabs__tab" , "Visual output" )
4141 . should ( "not.be.visible" ) ;
4242 cy . get ( "editor-wc" )
4343 . shadow ( )
4444 . find ( ".skulptrunner" )
4545 . find ( ".react-tabs__tab--selected" )
46- . should ( "contain" , "output.textOutput " ) ;
46+ . should ( "contain" , "Text output" ) ;
4747 cy . get ( "editor-wc" )
4848 . shadow ( )
4949 . find ( ".pythonrunner-console-output-line" )
@@ -57,13 +57,13 @@ describe("Running the code with skulpt", () => {
5757 cy . get ( "editor-wc" )
5858 . shadow ( )
5959 . find ( ".skulptrunner" )
60- . contains ( ".react-tabs__tab" , "output.textOutput " )
60+ . contains ( ".react-tabs__tab" , "Text output" )
6161 . should ( "exist" ) ;
6262 cy . get ( "editor-wc" )
6363 . shadow ( )
6464 . find ( ".skulptrunner" )
6565 . find ( ".react-tabs__tab--selected" )
66- . should ( "contain" , "output.visualOutput " ) ;
66+ . should ( "contain" , "Visual output" ) ;
6767 cy . get ( "editor-wc" ) . shadow ( ) . find ( ".p5Canvas" ) . should ( "exist" ) ;
6868 } ) ;
6969
@@ -83,17 +83,17 @@ describe("Running the code with skulpt", () => {
8383 cy . get ( "editor-wc" )
8484 . shadow ( )
8585 . find ( ".error-message__content" )
86- . should ( "contain" , "output.errors. interrupted" ) ;
86+ . should ( "contain" , "Execution interrupted" ) ;
8787 } ) ;
8888
8989 it ( "Py5 magic comment imports py5" , ( ) => {
90- runCode ( "# input.comment.py5 " ) ;
91- cy . get ( "editor-wc" ) . shadow ( ) . find ( ".p5Canvas" ) . should ( "be.visible" ) . debug ( ) ;
90+ runCode ( "# Py5: imported mode " ) ;
91+ cy . get ( "editor-wc" ) . shadow ( ) . find ( ".p5Canvas" ) . should ( "be.visible" ) ;
9292 } ) ;
9393
9494 it ( "Py5 imported mode runs sketch without explicit run call" , ( ) => {
9595 runCode (
96- "# input.comment.py5 \ndef setup():\n\tsize(400,400)\n\ndef draw():\n\tprint('hello world')"
96+ "# Py5: imported mode \ndef setup():\n\tsize(400,400)\n\ndef draw():\n\tprint('hello world')"
9797 ) ;
9898 cy . get ( "editor-wc" )
9999 . shadow ( )
@@ -108,7 +108,7 @@ describe("Running the code with skulpt", () => {
108108 cy . get ( "editor-wc" )
109109 . shadow ( )
110110 . find ( ".skulptrunner" )
111- . contains ( "output.textOutput " )
111+ . contains ( "Text output" )
112112 . click ( ) ;
113113
114114 cy . get ( "editor-wc" )
@@ -122,7 +122,7 @@ describe("Running the code with skulpt", () => {
122122 cy . get ( "editor-wc" )
123123 . shadow ( )
124124 . find ( ".skulptrunner" )
125- . should ( "contain" , "output.visualOutput " ) ;
125+ . should ( "contain" , "Visual output" ) ;
126126 } ) ;
127127
128128 it ( "does not render astro pi component on page load" , ( ) => {
@@ -134,14 +134,14 @@ describe("Running the code with skulpt", () => {
134134
135135 it ( "renders astro pi component if sense hat imported" , ( ) => {
136136 runCode ( "import sense_hat" ) ;
137- cy . get ( "editor-wc" ) . shadow ( ) . contains ( "output.visualOutput " ) . click ( ) ;
137+ cy . get ( "editor-wc" ) . shadow ( ) . contains ( "Visual output" ) . click ( ) ;
138138 cy . get ( "editor-wc" ) . shadow ( ) . find ( ".skulptrunner" ) . should ( "contain" , "yaw" ) ;
139139 } ) ;
140140
141141 it ( "does not render astro pi component if sense hat unimported" , ( ) => {
142142 runCode ( "import sense_hat" ) ;
143143 runCode ( "import p5" ) ;
144- cy . get ( "editor-wc" ) . shadow ( ) . contains ( "output.visualOutput " ) . click ( ) ;
144+ cy . get ( "editor-wc" ) . shadow ( ) . contains ( "Visual output" ) . click ( ) ;
145145 cy . get ( "editor-wc" )
146146 . shadow ( )
147147 . find ( ".skulptrunner" )
0 commit comments