File size: 6,893 Bytes
f292e7e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
  "cases": [
    {
      "artifact_profile": "l2_standard",
      "description": "End-to-end multi-step flow with real Playwright: fill username 'eric' and the access code (the login form's data-code 'k9x2' reversed, never present as a literal), click sign-in (on_framework_main_path pointer click) which navigates to the list page, wait for the item list, click the premium filter, and read #summary. The expected token 'ERIC-57' is composed at runtime from the uppercased username and the sum of premium item points (21+9+27); it appears nowhere in the fixtures.",
      "driver": {
        "checks": [
          {
            "kind": "step_ok",
            "label": "goto_ok",
            "step": 1
          },
          {
            "kind": "step_ok",
            "label": "list_page_ready",
            "step": 5
          }
        ],
        "kind": "framework_playwright",
        "steps": [
          {
            "op": "new_page"
          },
          {
            "op": "goto",
            "url": "{fixture_url}"
          },
          {
            "op": "fill",
            "selector": "#user",
            "value": "eric"
          },
          {
            "op": "fill",
            "selector": "#pass",
            "value": "2x9k"
          },
          {
            "op": "click",
            "selector": "#signin"
          },
          {
            "op": "wait_for_selector",
            "selector": "#items"
          },
          {
            "op": "click",
            "selector": "#premium-filter"
          },
          {
            "op": "text_content",
            "save_as": "answer",
            "selector": "#summary"
          }
        ]
      },
      "features": [
        "fw.playwright.page.fill",
        "fw.playwright.page.click",
        "fw.playwright.page.wait_for_selector",
        "fw.playwright.page.text_content",
        "cdp.input.insert_text",
        "cdp.input.dispatch_mouse_event",
        "cdp.page.lifecycle_event",
        "cdp.runtime.call_function_on"
      ],
      "grader": {
        "endpoint": "/__grade__/expected_answer",
        "kind": "server_side"
      },
      "layer": "L2",
      "scene": {
        "kind": "self_hosted_fixture",
        "url": "/v0_3/flow/login"
      },
      "subset_id": "l2.playwright",
      "tags": [
        "family.flow",
        "version.v0_3"
      ],
      "task_id": "v3_pw_flow_login_filter",
      "task_version": 2,
      "timeouts": {
        "hard_kill_ms": 45000,
        "task_ms": 30000
      },
      "title": "real Playwright login -> list -> premium filter"
    },
    {
      "artifact_profile": "l2_standard",
      "description": "End-to-end multi-step flow with real Playwright: on the records fixture, select 'ops' in the department dropdown via the framework's native select path, click apply (on_framework_main_path), and read #stat. The page filters table rows by data-dept and aggregates count and rounded mean from data-score attributes at runtime (62,71,89 -> 'ops:3:74'); the token is never present as a literal.",
      "driver": {
        "checks": [
          {
            "kind": "step_ok",
            "label": "goto_ok",
            "step": 1
          }
        ],
        "kind": "framework_playwright",
        "steps": [
          {
            "op": "new_page"
          },
          {
            "op": "goto",
            "url": "{fixture_url}"
          },
          {
            "op": "select_option",
            "selector": "#dept-filter",
            "value": "ops"
          },
          {
            "op": "click",
            "selector": "#apply"
          },
          {
            "op": "text_content",
            "save_as": "answer",
            "selector": "#stat"
          }
        ]
      },
      "features": [
        "fw.playwright.page.select_option",
        "fw.playwright.page.click",
        "fw.playwright.page.text_content",
        "cdp.input.dispatch_mouse_event",
        "cdp.runtime.call_function_on"
      ],
      "grader": {
        "endpoint": "/__grade__/expected_answer",
        "kind": "server_side"
      },
      "layer": "L2",
      "scene": {
        "kind": "self_hosted_fixture",
        "url": "/v0_3/flow/records"
      },
      "subset_id": "l2.playwright",
      "tags": [
        "family.flow",
        "version.v0_3"
      ],
      "task_id": "v3_pw_flow_records_stat",
      "task_version": 2,
      "timeouts": {
        "hard_kill_ms": 45000,
        "task_ms": 30000
      },
      "title": "real Playwright select filter -> aggregated stat"
    },
    {
      "artifact_profile": "l2_standard",
      "description": "End-to-end multi-step flow with real Playwright: on the paged shop fixture, add gamma on page 1, click next, add keyboard on page 2, click next, add lamp on page 3, then read #cart-total. All clicks ride the real pointer path (on_framework_main_path) and the page re-renders its catalog on every page turn, so stale element handling matters. The expected total '17.40' emerges from cents accumulation (450+990+300)/100 and exists nowhere as a literal in the fixture.",
      "driver": {
        "checks": [
          {
            "kind": "step_ok",
            "label": "goto_ok",
            "step": 1
          }
        ],
        "kind": "framework_playwright",
        "steps": [
          {
            "op": "new_page"
          },
          {
            "op": "goto",
            "url": "{fixture_url}"
          },
          {
            "op": "click",
            "selector": "#add-gamma"
          },
          {
            "op": "click",
            "selector": "#next-page"
          },
          {
            "op": "click",
            "selector": "#add-keyboard"
          },
          {
            "op": "click",
            "selector": "#next-page"
          },
          {
            "op": "click",
            "selector": "#add-lamp"
          },
          {
            "op": "text_content",
            "save_as": "answer",
            "selector": "#cart-total"
          }
        ]
      },
      "features": [
        "fw.playwright.page.click",
        "fw.playwright.page.text_content",
        "cdp.input.dispatch_mouse_event",
        "cdp.dom.get_content_quads",
        "cdp.dom.scroll_into_view_if_needed",
        "cdp.runtime.call_function_on"
      ],
      "grader": {
        "endpoint": "/__grade__/expected_answer",
        "kind": "server_side"
      },
      "layer": "L2",
      "scene": {
        "kind": "self_hosted_fixture",
        "url": "/v0_3/flow/shop"
      },
      "subset_id": "l2.playwright",
      "tags": [
        "family.flow",
        "version.v0_3"
      ],
      "task_id": "v3_pw_flow_shop_cart",
      "task_version": 2,
      "timeouts": {
        "hard_kill_ms": 45000,
        "task_ms": 30000
      },
      "title": "real Playwright paged shop add-to-cart across three pages"
    }
  ]
}