From c826417f73d4ce100471a073e8bbc16f1724e8c9 Mon Sep 17 00:00:00 2001 From: Duane Nykamp Date: Tue, 3 Oct 2023 06:43:21 -0500 Subject: [PATCH] add media to test-cypress and test-viewer --- .../e2e/dynamicalsystem/cobwebpolyline.cy.js | 2 +- .../cypress/e2e/tagSpecific/copy.cy.js | 16 +- ...jvrb7y755a2xg3yhayg5jllknuedks4oalm.doenet | 10 + ...ilr5khjxqsuqddgurnutqczyebj7lzw7zyy.doenet | 5 + ...a62rpgpkyy33edxc4z2wkvcgluuqo2gbenu.doenet | 5 + ...csiravqyy7xnpynyskilyg2etb3hva7oe74.doenet | 14 + ...gsr42jvt266ourxqlpukspkedwe7kfwflze.doenet | 91 ++++ ...xlnuj3suf3xo236enwidz5wyeew7pcec3ba.doenet | 3 + ...cu62bumszzrxqgukaetwywajjbbnh45zfqa.doenet | 55 ++ ...2i2iu2743vvzrvttjy55vcmvunka7nu3ope.doenet | 4 + ...bfh5jnj75kty7vjz7w6zo7goyxpwr2e7wti.doenet | 13 + ...ke4rw7magtcrbrjgeo6ihkoyonsig7wciey.doenet | 31 ++ ...i5ftoevhbymn34dyi4inqsxdfvfskj234qi.doenet | 497 ++++++++++++++++++ ...mclbsgzcsdsswhmtfcrqq7m6datze2tiwu4.doenet | 1 + ...so2l4rtqgbcgli2bhbdzmccaopj3u6fkmdy.doenet | 35 ++ ...nshkyfupp3egx6ep3jgnlo747d6s5v7nznu.doenet | 34 ++ ...gye222eugueeg2lxuijobo4bvyyjxxceaqy.doenet | 68 +++ ...zyrlnzbrd3aqpgs2rvt5ednsm3qdbk7aduy.doenet | 59 +++ ...cscknot5jttw6mtfp5j4bmfwsyufxh6aav4.doenet | 31 ++ packages/test-cypress/vite.config.ts | 4 + packages/test-viewer/vite.config.ts | 4 + 21 files changed, 973 insertions(+), 9 deletions(-) create mode 100644 packages/test-cypress/media/bafkreia3r7nyo7bvh3xnx47jvrb7y755a2xg3yhayg5jllknuedks4oalm.doenet create mode 100644 packages/test-cypress/media/bafkreia7xqmfuhas6yrpr7hilr5khjxqsuqddgurnutqczyebj7lzw7zyy.doenet create mode 100644 packages/test-cypress/media/bafkreiatlgd6rb5reyd33tba62rpgpkyy33edxc4z2wkvcgluuqo2gbenu.doenet create mode 100644 packages/test-cypress/media/bafkreiatr7qxnkb5lnjd7bccsiravqyy7xnpynyskilyg2etb3hva7oe74.doenet create mode 100644 packages/test-cypress/media/bafkreiatwotzdmrphuof5j4gsr42jvt266ourxqlpukspkedwe7kfwflze.doenet create mode 100644 packages/test-cypress/media/bafkreiblfl6xriye7uuiik6xlnuj3suf3xo236enwidz5wyeew7pcec3ba.doenet create mode 100644 packages/test-cypress/media/bafkreici7lwt3yywhf75ypbcu62bumszzrxqgukaetwywajjbbnh45zfqa.doenet create mode 100644 packages/test-cypress/media/bafkreid5s6fwzzfaax7pr3d2i2iu2743vvzrvttjy55vcmvunka7nu3ope.doenet create mode 100644 packages/test-cypress/media/bafkreide4mismb45mxved2ibfh5jnj75kty7vjz7w6zo7goyxpwr2e7wti.doenet create mode 100644 packages/test-cypress/media/bafkreidqud3rixmphu3jufuke4rw7magtcrbrjgeo6ihkoyonsig7wciey.doenet create mode 100644 packages/test-cypress/media/bafkreief4dcu4mfiqfib2xii5ftoevhbymn34dyi4inqsxdfvfskj234qi.doenet create mode 100644 packages/test-cypress/media/bafkreiewuu4vpro2d3vxm3wmclbsgzcsdsswhmtfcrqq7m6datze2tiwu4.doenet create mode 100644 packages/test-cypress/media/bafkreifbeoxzphrpufrirccso2l4rtqgbcgli2bhbdzmccaopj3u6fkmdy.doenet create mode 100644 packages/test-cypress/media/bafkreifgmyjuw4m6odukznenshkyfupp3egx6ep3jgnlo747d6s5v7nznu.doenet create mode 100644 packages/test-cypress/media/bafkreighf6sivfiy44rjw6ogye222eugueeg2lxuijobo4bvyyjxxceaqy.doenet create mode 100644 packages/test-cypress/media/bafkreigqo7xagr2hyfacifhzyrlnzbrd3aqpgs2rvt5ednsm3qdbk7aduy.doenet create mode 100644 packages/test-cypress/media/bafkreigvxxq2khrtoltaqfecscknot5jttw6mtfp5j4bmfwsyufxh6aav4.doenet diff --git a/packages/test-cypress/cypress/e2e/dynamicalsystem/cobwebpolyline.cy.js b/packages/test-cypress/cypress/e2e/dynamicalsystem/cobwebpolyline.cy.js index 4603b5de4..9fc3a9d67 100644 --- a/packages/test-cypress/cypress/e2e/dynamicalsystem/cobwebpolyline.cy.js +++ b/packages/test-cypress/cypress/e2e/dynamicalsystem/cobwebpolyline.cy.js @@ -1861,7 +1861,7 @@ describe("CobwebPolyline Tag Tests", function () { 2x-x^2/3 - + `, }, diff --git a/packages/test-cypress/cypress/e2e/tagSpecific/copy.cy.js b/packages/test-cypress/cypress/e2e/tagSpecific/copy.cy.js index 02afe4abc..94b5fd26a 100644 --- a/packages/test-cypress/cypress/e2e/tagSpecific/copy.cy.js +++ b/packages/test-cypress/cypress/e2e/tagSpecific/copy.cy.js @@ -11946,7 +11946,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a - +

Don't get this: Bye

@@ -11992,7 +11992,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a - +

Don't get this: Bye

@@ -12056,7 +12056,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a -
+

Don't get this: Bye

@@ -12120,7 +12120,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a - +

Don't get this: Bye

@@ -12213,7 +12213,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a -
+

Don't get this: Bye

@@ -12306,7 +12306,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a - +

Don't get this 2: Leave

@@ -12360,7 +12360,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a - +

Don't get this 2: Leave

@@ -12420,7 +12420,7 @@ describe("Copy Tag Tests", function () { { doenetML: ` a -
+

Don't get this 2: Leave

diff --git a/packages/test-cypress/media/bafkreia3r7nyo7bvh3xnx47jvrb7y755a2xg3yhayg5jllknuedks4oalm.doenet b/packages/test-cypress/media/bafkreia3r7nyo7bvh3xnx47jvrb7y755a2xg3yhayg5jllknuedks4oalm.doenet new file mode 100644 index 000000000..b799c71a1 --- /dev/null +++ b/packages/test-cypress/media/bafkreia3r7nyo7bvh3xnx47jvrb7y755a2xg3yhayg5jllknuedks4oalm.doenet @@ -0,0 +1,10 @@ +

The DoenetML of a graph:

+ +

+  
+    
+  
+
+ +

The DoenetML of the p:

+
$p.doenetML
diff --git a/packages/test-cypress/media/bafkreia7xqmfuhas6yrpr7hilr5khjxqsuqddgurnutqczyebj7lzw7zyy.doenet b/packages/test-cypress/media/bafkreia7xqmfuhas6yrpr7hilr5khjxqsuqddgurnutqczyebj7lzw7zyy.doenet new file mode 100644 index 000000000..cb36b5301 --- /dev/null +++ b/packages/test-cypress/media/bafkreia7xqmfuhas6yrpr7hilr5khjxqsuqddgurnutqczyebj7lzw7zyy.doenet @@ -0,0 +1,5 @@ + + \ No newline at end of file diff --git a/packages/test-cypress/media/bafkreiatlgd6rb5reyd33tba62rpgpkyy33edxc4z2wkvcgluuqo2gbenu.doenet b/packages/test-cypress/media/bafkreiatlgd6rb5reyd33tba62rpgpkyy33edxc4z2wkvcgluuqo2gbenu.doenet new file mode 100644 index 000000000..e55628569 --- /dev/null +++ b/packages/test-cypress/media/bafkreiatlgd6rb5reyd33tba62rpgpkyy33edxc4z2wkvcgluuqo2gbenu.doenet @@ -0,0 +1,5 @@ +
+
+ +

Don't get this: Bye

+
\ No newline at end of file diff --git a/packages/test-cypress/media/bafkreiatr7qxnkb5lnjd7bccsiravqyy7xnpynyskilyg2etb3hva7oe74.doenet b/packages/test-cypress/media/bafkreiatr7qxnkb5lnjd7bccsiravqyy7xnpynyskilyg2etb3hva7oe74.doenet new file mode 100644 index 000000000..c606bb4af --- /dev/null +++ b/packages/test-cypress/media/bafkreiatr7qxnkb5lnjd7bccsiravqyy7xnpynyskilyg2etb3hva7oe74.doenet @@ -0,0 +1,14 @@ +
+ Copied content + +
+ +

Grab the DoenetML from external p:

+ +
$(external/p.doenetML)
+ +

DoenetML of single line:

+

+  hi
+
diff --git a/packages/test-cypress/media/bafkreiatwotzdmrphuof5j4gsr42jvt266ourxqlpukspkedwe7kfwflze.doenet b/packages/test-cypress/media/bafkreiatwotzdmrphuof5j4gsr42jvt266ourxqlpukspkedwe7kfwflze.doenet new file mode 100644 index 000000000..b11cc4325 --- /dev/null +++ b/packages/test-cypress/media/bafkreiatwotzdmrphuof5j4gsr42jvt266ourxqlpukspkedwe7kfwflze.doenet @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Initial condition: + + + + + + + + + + +

+
+ +

Correct cobwebbing: + + true + + + + + + + + + +

+ + To start cobwebbing, click the "Add line" button and move the point at the end of the line. + + + At least one point on cobweb plot is incorrect. + + For full credit, calculate at least $numIterationsRequired iterates + (i.e., to x_{$numIterationsRequired}). + +
\ No newline at end of file diff --git a/packages/test-cypress/media/bafkreiblfl6xriye7uuiik6xlnuj3suf3xo236enwidz5wyeew7pcec3ba.doenet b/packages/test-cypress/media/bafkreiblfl6xriye7uuiik6xlnuj3suf3xo236enwidz5wyeew7pcec3ba.doenet new file mode 100644 index 000000000..ac1a785ce --- /dev/null +++ b/packages/test-cypress/media/bafkreiblfl6xriye7uuiik6xlnuj3suf3xo236enwidz5wyeew7pcec3ba.doenet @@ -0,0 +1,3 @@ + + +

Don't get this: Bye

\ No newline at end of file diff --git a/packages/test-cypress/media/bafkreici7lwt3yywhf75ypbcu62bumszzrxqgukaetwywajjbbnh45zfqa.doenet b/packages/test-cypress/media/bafkreici7lwt3yywhf75ypbcu62bumszzrxqgukaetwywajjbbnh45zfqa.doenet new file mode 100644 index 000000000..e70d4ed2e --- /dev/null +++ b/packages/test-cypress/media/bafkreici7lwt3yywhf75ypbcu62bumszzrxqgukaetwywajjbbnh45zfqa.doenet @@ -0,0 +1,55 @@ +
Outer +

Intended target: Hello

+ +

Five copies: + + + + + +

+ +
New namespace +

Local target: Hola

+

Five copies of local: + + + + + +

+

Five copies of base: + + + + + +

+ + Another new namespace +

Local target: Marhaban

+

Five copies of local: + + + + + +

+

Five copies of middle: + + + + + +

+

Five copies of base: + + + + + +

+
+ +
+
\ No newline at end of file diff --git a/packages/test-cypress/media/bafkreid5s6fwzzfaax7pr3d2i2iu2743vvzrvttjy55vcmvunka7nu3ope.doenet b/packages/test-cypress/media/bafkreid5s6fwzzfaax7pr3d2i2iu2743vvzrvttjy55vcmvunka7nu3ope.doenet new file mode 100644 index 000000000..04f059028 --- /dev/null +++ b/packages/test-cypress/media/bafkreid5s6fwzzfaax7pr3d2i2iu2743vvzrvttjy55vcmvunka7nu3ope.doenet @@ -0,0 +1,4 @@ + + + + diff --git a/packages/test-cypress/media/bafkreide4mismb45mxved2ibfh5jnj75kty7vjz7w6zo7goyxpwr2e7wti.doenet b/packages/test-cypress/media/bafkreide4mismb45mxved2ibfh5jnj75kty7vjz7w6zo7goyxpwr2e7wti.doenet new file mode 100644 index 000000000..c187b3c79 --- /dev/null +++ b/packages/test-cypress/media/bafkreide4mismb45mxved2ibfh5jnj75kty7vjz7w6zo7goyxpwr2e7wti.doenet @@ -0,0 +1,13 @@ + + Derivative problem + +

What is the derivative of x^2? + + + $expr + + +

+ + +
\ No newline at end of file diff --git a/packages/test-cypress/media/bafkreidqud3rixmphu3jufuke4rw7magtcrbrjgeo6ihkoyonsig7wciey.doenet b/packages/test-cypress/media/bafkreidqud3rixmphu3jufuke4rw7magtcrbrjgeo6ihkoyonsig7wciey.doenet new file mode 100644 index 000000000..0066d0730 --- /dev/null +++ b/packages/test-cypress/media/bafkreidqud3rixmphu3jufuke4rw7magtcrbrjgeo6ihkoyonsig7wciey.doenet @@ -0,0 +1,31 @@ + Animal sounds + + + + + +

What does the $animal say?

+ + + meow + woof + squeak + blub + + + +

That's right, the $animal goes $sound!

+

Try again.

diff --git a/packages/test-cypress/media/bafkreief4dcu4mfiqfib2xii5ftoevhbymn34dyi4inqsxdfvfskj234qi.doenet b/packages/test-cypress/media/bafkreief4dcu4mfiqfib2xii5ftoevhbymn34dyi4inqsxdfvfskj234qi.doenet new file mode 100644 index 000000000..ee5dd2990 --- /dev/null +++ b/packages/test-cypress/media/bafkreief4dcu4mfiqfib2xii5ftoevhbymn34dyi4inqsxdfvfskj234qi.doenet @@ -0,0 +1,497 @@ + + + + + + + + + + + + + + + + + + 0 + 0 + 0 + 0 + 0 + + $$f($x0) + $$f($x1) + false + false + ($xmin+$xmax)/2 + ($ymin+$ymax)/2 + 1 + $nPoints >= 1 and $P1 = ($x0,0) + 1 + $nVlines >= 1 and $pv11.x = $x0 + 1 + $nHlines >= 1 and $ph11.y = $x1 + 1 + $nPoints >= 2 and $P2 = (0,$x1) + 1 + $nPoints >= 2 and $P3 = ($x1,0) + 1 + $nVlines >= 2 and $pv21.x = $x1 + 1 + $nHlines >= 2 and $ph21.y = $x2 + 1 + $nPoints >= 4 and $P4 = (0,$x2) + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Results + + + + $(variable)_0 \amp = $(x0{displayDecimals="2"}) + + + $(variable)_1 \amp = $x1 + + + $(variable)_2 \amp = $(x2{displayDecimals="2"}) + + + + + + + + + + + + + diff --git a/packages/test-cypress/media/bafkreiewuu4vpro2d3vxm3wmclbsgzcsdsswhmtfcrqq7m6datze2tiwu4.doenet b/packages/test-cypress/media/bafkreiewuu4vpro2d3vxm3wmclbsgzcsdsswhmtfcrqq7m6datze2tiwu4.doenet new file mode 100644 index 000000000..4fd34e13a --- /dev/null +++ b/packages/test-cypress/media/bafkreiewuu4vpro2d3vxm3wmclbsgzcsdsswhmtfcrqq7m6datze2tiwu4.doenet @@ -0,0 +1 @@ +8.8537293749534271943 diff --git a/packages/test-cypress/media/bafkreifbeoxzphrpufrirccso2l4rtqgbcgli2bhbdzmccaopj3u6fkmdy.doenet b/packages/test-cypress/media/bafkreifbeoxzphrpufrirccso2l4rtqgbcgli2bhbdzmccaopj3u6fkmdy.doenet new file mode 100644 index 000000000..9178ec026 --- /dev/null +++ b/packages/test-cypress/media/bafkreifbeoxzphrpufrirccso2l4rtqgbcgli2bhbdzmccaopj3u6fkmdy.doenet @@ -0,0 +1,35 @@ +

Intended target: Hello

+ +

Five copies: + + + + + +

+ +
New namespace +

Local target: Hola

+

Copy of local:

+

Fives copies of base: + + + + + +

+ + Another new namespace +

Local target: Marhaban

+

Copy of local:

+

Copy of middle:

+

Fives copies of base: + + + + + +

+
+ +
\ No newline at end of file diff --git a/packages/test-cypress/media/bafkreifgmyjuw4m6odukznenshkyfupp3egx6ep3jgnlo747d6s5v7nznu.doenet b/packages/test-cypress/media/bafkreifgmyjuw4m6odukznenshkyfupp3egx6ep3jgnlo747d6s5v7nznu.doenet new file mode 100644 index 000000000..afc5adebd --- /dev/null +++ b/packages/test-cypress/media/bafkreifgmyjuw4m6odukznenshkyfupp3egx6ep3jgnlo747d6s5v7nznu.doenet @@ -0,0 +1,34 @@ + + Animal sounds + + + + + +

What does the $animal say?

+ + + meow + woof + squeak + blub + + + +

That's right, the $animal goes $sound!

+

Try again.

+ +
diff --git a/packages/test-cypress/media/bafkreighf6sivfiy44rjw6ogye222eugueeg2lxuijobo4bvyyjxxceaqy.doenet b/packages/test-cypress/media/bafkreighf6sivfiy44rjw6ogye222eugueeg2lxuijobo4bvyyjxxceaqy.doenet new file mode 100644 index 000000000..8b88ef5e2 --- /dev/null +++ b/packages/test-cypress/media/bafkreighf6sivfiy44rjw6ogye222eugueeg2lxuijobo4bvyyjxxceaqy.doenet @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 0 + + + + + + + $initialPoint = ($x0,0) + + + + + + + + + + + + $(variable)_$timeVariable" + $(variable)_{$timeVariable+1} + + + + + + diff --git a/packages/test-cypress/media/bafkreigqo7xagr2hyfacifhzyrlnzbrd3aqpgs2rvt5ednsm3qdbk7aduy.doenet b/packages/test-cypress/media/bafkreigqo7xagr2hyfacifhzyrlnzbrd3aqpgs2rvt5ednsm3qdbk7aduy.doenet new file mode 100644 index 000000000..17d1e2596 --- /dev/null +++ b/packages/test-cypress/media/bafkreigqo7xagr2hyfacifhzyrlnzbrd3aqpgs2rvt5ednsm3qdbk7aduy.doenet @@ -0,0 +1,59 @@ +
Outer +

Intended target: Hello

+ +

Five copies: + + + + + +

+ +

Four no matches:

+ +
New namespace +

Local target: Hola

+

Five copies of local: + + + + + +

+

Fives copies of base: + + + + + +

+

Four no matches:

+ + Another new namespace +

Local target: Marhaban

+

Five copies of local: + + + + + +

+

Five copies of middle: + + + + + +

+

Fives copies of base: + + + + + +

+

Four no matches:

+
+ +
+
\ No newline at end of file diff --git a/packages/test-cypress/media/bafkreigvxxq2khrtoltaqfecscknot5jttw6mtfp5j4bmfwsyufxh6aav4.doenet b/packages/test-cypress/media/bafkreigvxxq2khrtoltaqfecscknot5jttw6mtfp5j4bmfwsyufxh6aav4.doenet new file mode 100644 index 000000000..e7fdc43c7 --- /dev/null +++ b/packages/test-cypress/media/bafkreigvxxq2khrtoltaqfecscknot5jttw6mtfp5j4bmfwsyufxh6aav4.doenet @@ -0,0 +1,31 @@ + + + + + + + + + + + + $title + +

Move the point to ($goalx, $goaly).

+ + + + + + + + + + + + $P = ($goalx, $goaly) + + + +
+
\ No newline at end of file diff --git a/packages/test-cypress/vite.config.ts b/packages/test-cypress/vite.config.ts index 76f610e84..870ae88ca 100644 --- a/packages/test-cypress/vite.config.ts +++ b/packages/test-cypress/vite.config.ts @@ -28,6 +28,10 @@ export default defineConfig({ ), dest: "fonts/", }, + { + src: "./media/*", + dest: "media/", + }, ], }), ], diff --git a/packages/test-viewer/vite.config.ts b/packages/test-viewer/vite.config.ts index 76f610e84..870ae88ca 100644 --- a/packages/test-viewer/vite.config.ts +++ b/packages/test-viewer/vite.config.ts @@ -28,6 +28,10 @@ export default defineConfig({ ), dest: "fonts/", }, + { + src: "./media/*", + dest: "media/", + }, ], }), ],