Skip to content

Commit 87365ac

Browse files
authored
Add some simple NES tests for alt format of notebooks (#543)
* Add some simple NES tests for alt format of notebooks * Updates * Updates
1 parent db604fa commit 87365ac

File tree

8 files changed

+1088
-0
lines changed

8 files changed

+1088
-0
lines changed

test/outcome/inlineedit-goldenscenario-xtab-external.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
"fc8f8cfc63e544cc0ff17a0dd9a50c7ea2c537ed0dc2ee45b78d7dbe8e4ee9ff"
3636
]
3737
},
38+
{
39+
"name": "InlineEdit GoldenScenario ([xtab]) [external] [python] - Notebook 10-update-name-in-same-cell-of-notebook",
40+
"requests": [
41+
"c6eadfad537deafedc3a0996374b219829a2332d6a5d03ec584c42cb7a464540"
42+
]
43+
},
44+
{
45+
"name": "InlineEdit GoldenScenario ([xtab]) [external] [python] - Notebook 11-update-name-in-next-cell-of-notebook",
46+
"requests": [
47+
"87025b6ed3d719e019ec1889aac8d9f23c0c80eb707935c374d42a58bbe72000"
48+
]
49+
},
3850
{
3951
"name": "InlineEdit GoldenScenario ([xtab]) [external] [typescript] - [MustHave] 1-point.ts",
4052
"requests": [

test/simulation/baseline.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3971,6 +3971,20 @@
39713971
"CompScore3": 0.75
39723972
}
39733973
},
3974+
{
3975+
"name": "InlineEdit GoldenScenario ([xtab]) [external] [python] - Notebook 10-update-name-in-same-cell-of-notebook",
3976+
"contentFilterCount": 0,
3977+
"passCount": 10,
3978+
"failCount": 0,
3979+
"score": 0.1
3980+
},
3981+
{
3982+
"name": "InlineEdit GoldenScenario ([xtab]) [external] [python] - Notebook 11-update-name-in-next-cell-of-notebook",
3983+
"contentFilterCount": 0,
3984+
"passCount": 10,
3985+
"failCount": 0,
3986+
"score": 0.1
3987+
},
39743988
{
39753989
"name": "InlineEdit GoldenScenario ([xtab]) [external] [typescript] - [MustHave] 1-point.ts",
39763990
"contentFilterCount": 0,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:9325541d0e772977ab5b602f7efe58fca5d68309e9e77ef3cdd723f099f63cdf
3+
size 81920
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"log":[{"documentType":"[email protected]","kind":"header","repoRootUri":"file:///Users/donjayamanne/temp/sample","time":1754884552803,"uuid":"de3f1c8b-2bc9-4297-b7d5-4b9570392637"},{"kind":"documentEncountered","id":1,"relativePath":"simple.ipynb","time":1754884172492},{"kind":"setContent","id":1,"v":1,"content":"#%% vscode.cell [id=#VSC-99572b5d] [language=python]\nname = \"Foo Bar\"\nprint(f\"Hello, {name}!\")\n#%% vscode.cell [id=#VSC-ff5065fd] [language=python]\nprint(f\"Your name is {name}.\")","time":1754884172492},{"kind":"opened","id":1,"time":1754884172492},{"kind":"selectionChanged","id":1,"selection":[[56,56],[177,177]],"time":1754884179934},{"kind":"selectionChanged","id":1,"selection":[[55,55],[177,177]],"time":1754884180083},{"kind":"selectionChanged","id":1,"selection":[[54,54],[177,177]],"time":1754884180259},{"kind":"selectionChanged","id":1,"selection":[[53,53],[177,177]],"time":1754884180445},{"kind":"changed","id":1,"v":6,"edit":[[53,53,"f"]],"time":1754884181055},{"kind":"selectionChanged","id":1,"selection":[[54,54],[178,178]],"time":1754884181061},{"kind":"changed","id":1,"v":8,"edit":[[54,54,"u"]],"time":1754884181148},{"kind":"selectionChanged","id":1,"selection":[[55,55],[179,179]],"time":1754884181151}]}
Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
{
2+
"$web-editor.format-json": true,
3+
"$web-editor.default-url": "https://microsoft.github.io/vscode-workbench-recorder-viewer/?editRating",
4+
"edits": [
5+
{
6+
"documentUri": "file:///Users/donjayamanne/temp/sample/simple.ipynb",
7+
"edit": [
8+
[
9+
88,
10+
88,
11+
"fu"
12+
]
13+
],
14+
"scoreCategory": "valid",
15+
"score": 0
16+
}
17+
],
18+
"scoringContext": {
19+
"kind": "recording",
20+
"recording": {
21+
"log": [
22+
{
23+
"documentType": "[email protected]",
24+
"kind": "header",
25+
"repoRootUri": "file:///Users/donjayamanne/temp/sample",
26+
"time": 1754884552803,
27+
"uuid": "de3f1c8b-2bc9-4297-b7d5-4b9570392637"
28+
},
29+
{
30+
"kind": "documentEncountered",
31+
"id": 1,
32+
"relativePath": "simple.ipynb",
33+
"time": 1754884172492
34+
},
35+
{
36+
"kind": "setContent",
37+
"id": 1,
38+
"v": 1,
39+
"content": "#%% vscode.cell [id=#VSC-99572b5d] [language=python]\nname = \"Foo Bar\"\nprint(f\"Hello, {name}!\")\n#%% vscode.cell [id=#VSC-ff5065fd] [language=python]\nprint(f\"Your name is {name}.\")",
40+
"time": 1754884172492
41+
},
42+
{
43+
"kind": "opened",
44+
"id": 1,
45+
"time": 1754884172492
46+
},
47+
{
48+
"kind": "selectionChanged",
49+
"id": 1,
50+
"selection": [
51+
[
52+
56,
53+
56
54+
],
55+
[
56+
177,
57+
177
58+
]
59+
],
60+
"time": 1754884179934
61+
},
62+
{
63+
"kind": "selectionChanged",
64+
"id": 1,
65+
"selection": [
66+
[
67+
55,
68+
55
69+
],
70+
[
71+
177,
72+
177
73+
]
74+
],
75+
"time": 1754884180083
76+
},
77+
{
78+
"kind": "selectionChanged",
79+
"id": 1,
80+
"selection": [
81+
[
82+
54,
83+
54
84+
],
85+
[
86+
177,
87+
177
88+
]
89+
],
90+
"time": 1754884180259
91+
},
92+
{
93+
"kind": "selectionChanged",
94+
"id": 1,
95+
"selection": [
96+
[
97+
53,
98+
53
99+
],
100+
[
101+
177,
102+
177
103+
]
104+
],
105+
"time": 1754884180445
106+
},
107+
{
108+
"kind": "changed",
109+
"id": 1,
110+
"v": 6,
111+
"edit": [
112+
[
113+
53,
114+
53,
115+
"f"
116+
]
117+
],
118+
"time": 1754884181055
119+
},
120+
{
121+
"kind": "selectionChanged",
122+
"id": 1,
123+
"selection": [
124+
[
125+
54,
126+
54
127+
],
128+
[
129+
178,
130+
178
131+
]
132+
],
133+
"time": 1754884181061
134+
},
135+
{
136+
"kind": "changed",
137+
"id": 1,
138+
"v": 8,
139+
"edit": [
140+
[
141+
54,
142+
54,
143+
"u"
144+
]
145+
],
146+
"time": 1754884181148
147+
},
148+
{
149+
"kind": "selectionChanged",
150+
"id": 1,
151+
"selection": [
152+
[
153+
55,
154+
55
155+
],
156+
[
157+
179,
158+
179
159+
]
160+
],
161+
"time": 1754884181151
162+
}
163+
]
164+
}
165+
}
166+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"log":[{"documentType":"[email protected]","kind":"header","repoRootUri":"file:///Users/donjayamanne/temp/sample","time":1754884845682,"uuid":"c85733fd-2865-494c-9f14-6c172828f22b"},{"kind":"documentEncountered","id":1,"relativePath":"simple.ipynb","time":1754884814408},{"kind":"setContent","id":1,"v":1,"content":"#%% vscode.cell [id=#VSC-99572b5d] [language=python]\nname = \"Foo Bar Baz\"\n#%% vscode.cell [id=#VSC-ff5065fd] [language=python]\nprint(f\"Your name is {name}.\")","time":1754884814408},{"kind":"opened","id":1,"time":1754884814408},{"kind":"selectionChanged","id":1,"selection":[[73,73],[157,157]],"time":1754884821325},{"kind":"selectionChanged","id":1,"selection":[[72,72],[157,157]],"time":1754884823019},{"kind":"selectionChanged","id":1,"selection":[[69,72],[157,157]],"time":1754884824325},{"kind":"selectionChanged","id":1,"selection":[[65,72],[157,157]],"time":1754884824453},{"kind":"selectionChanged","id":1,"selection":[[61,72],[157,157]],"time":1754884824657},{"kind":"changed","id":1,"v":7,"edit":[[61,72,"J"]],"time":1754884829317},{"kind":"selectionChanged","id":1,"selection":[[62,62],[147,147]],"time":1754884829321},{"kind":"changed","id":1,"v":9,"edit":[[62,62,"o"]],"time":1754884829508},{"kind":"selectionChanged","id":1,"selection":[[63,63],[148,148]],"time":1754884829511},{"kind":"changed","id":1,"v":11,"edit":[[63,63,"h"]],"time":1754884829980},{"kind":"selectionChanged","id":1,"selection":[[64,64],[149,149]],"time":1754884829983},{"kind":"changed","id":1,"v":13,"edit":[[64,64,"n"]],"time":1754884830159},{"kind":"selectionChanged","id":1,"selection":[[65,65],[150,150]],"time":1754884830162},{"kind":"changed","id":1,"v":15,"edit":[[65,65," "]],"time":1754884830343},{"kind":"selectionChanged","id":1,"selection":[[66,66],[151,151]],"time":1754884830345},{"kind":"changed","id":1,"v":17,"edit":[[66,66,"D"]],"time":1754884830619},{"kind":"selectionChanged","id":1,"selection":[[67,67],[152,152]],"time":1754884830622},{"kind":"changed","id":1,"v":19,"edit":[[67,67,"o"]],"time":1754884830704},{"kind":"selectionChanged","id":1,"selection":[[68,68],[153,153]],"time":1754884830706},{"kind":"changed","id":1,"v":21,"edit":[[68,68,"e"]],"time":1754884830819},{"kind":"selectionChanged","id":1,"selection":[[69,69],[154,154]],"time":1754884830821},{"kind":"selectionChanged","id":1,"selection":[[54,54],[154,154]],"time":1754884833244},{"kind":"selectionChanged","id":1,"selection":[[53,53],[154,154]],"time":1754884833909},{"kind":"changed","id":1,"v":25,"edit":[[53,53,"f"]],"time":1754884835122},{"kind":"selectionChanged","id":1,"selection":[[54,54],[155,155]],"time":1754884835125},{"kind":"changed","id":1,"v":27,"edit":[[54,54,"i"]],"time":1754884835234},{"kind":"selectionChanged","id":1,"selection":[[55,55],[156,156]],"time":1754884835237},{"kind":"changed","id":1,"v":29,"edit":[[55,55,"r"]],"time":1754884835284},{"kind":"selectionChanged","id":1,"selection":[[56,56],[157,157]],"time":1754884835286},{"kind":"changed","id":1,"v":31,"edit":[[56,56,"s"]],"time":1754884835444},{"kind":"selectionChanged","id":1,"selection":[[57,57],[158,158]],"time":1754884835447},{"kind":"changed","id":1,"v":33,"edit":[[57,57,"t"]],"time":1754884835480},{"kind":"selectionChanged","id":1,"selection":[[58,58],[159,159]],"time":1754884835483},{"kind":"changed","id":1,"v":35,"edit":[[58,58,"_"]],"time":1754884835774},{"kind":"selectionChanged","id":1,"selection":[[59,59],[160,160]],"time":1754884835776},{"kind":"selectionChanged","id":1,"selection":[[76,76],[160,160]],"time":1754884836396},{"kind":"selectionChanged","id":1,"selection":[[130,130],[76,76]],"time":1754884838114},{"kind":"selectionChanged","id":1,"selection":[[131,131],[76,76]],"time":1754884838957},{"kind":"selectionChanged","id":1,"selection":[[132,132],[76,76]],"time":1754884839164},{"kind":"selectionChanged","id":1,"selection":[[133,133],[76,76]],"time":1754884839338},{"kind":"selectionChanged","id":1,"selection":[[134,134],[76,76]],"time":1754884839518},{"kind":"selectionChanged","id":1,"selection":[[135,135],[76,76]],"time":1754884839688},{"kind":"selectionChanged","id":1,"selection":[[137,137],[76,76]],"time":1754884839870},{"kind":"selectionChanged","id":1,"selection":[[142,142],[76,76]],"time":1754884840040},{"kind":"selectionChanged","id":1,"selection":[[147,147],[76,76]],"time":1754884840233},{"kind":"selectionChanged","id":1,"selection":[[143,143],[76,76]],"time":1754884840608},{"kind":"changed","id":1,"v":48,"edit":[[143,143,"f"]],"time":1754884841328},{"kind":"selectionChanged","id":1,"selection":[[144,144],[76,76]],"time":1754884841333},{"kind":"changed","id":1,"v":50,"edit":[[144,144,"i"]],"time":1754884841403},{"kind":"selectionChanged","id":1,"selection":[[145,145],[76,76]],"time":1754884841405},{"kind":"changed","id":1,"v":52,"edit":[[145,145,"r"]],"time":1754884841478},{"kind":"selectionChanged","id":1,"selection":[[146,146],[76,76]],"time":1754884841481},{"kind":"changed","id":1,"v":54,"edit":[[146,146,"s"]],"time":1754884841619},{"kind":"selectionChanged","id":1,"selection":[[147,147],[76,76]],"time":1754884841622},{"kind":"changed","id":1,"v":56,"edit":[[147,147,"t"]],"time":1754884841670},{"kind":"selectionChanged","id":1,"selection":[[148,148],[76,76]],"time":1754884841672},{"kind":"changed","id":1,"v":58,"edit":[[148,148," "]],"time":1754884841745},{"kind":"selectionChanged","id":1,"selection":[[149,149],[76,76]],"time":1754884841747}]}

0 commit comments

Comments
 (0)