gehuageyan commited on
Commit
0502145
·
verified ·
1 Parent(s): 3b98c39

Publish original Headless Browser inputs from 91ca91ae26d6baf84fbc104431f13e577ca41abf (part 3)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. definitions/tasks/L1/cdp_use/sc_form_radio_pick__cdpu.json +71 -0
  2. definitions/tasks/L1/cdp_use/sc_form_select_option__cdpu.json +72 -0
  3. definitions/tasks/L1/cdp_use/sc_form_submit_roundtrip__cdpu.json +83 -0
  4. definitions/tasks/L1/cdp_use/sc_form_textarea_fill__cdpu.json +72 -0
  5. definitions/tasks/L1/cdp_use/sc_fr_child_posts_parent__cdpu.json +72 -0
  6. definitions/tasks/L1/cdp_use/sc_fr_child_self_navigation__cdpu.json +76 -0
  7. definitions/tasks/L1/cdp_use/sc_fr_cross_origin_blocked__cdpu.json +76 -0
  8. definitions/tasks/L1/cdp_use/sc_fr_dynamic_iframe_attach__cdpu.json +76 -0
  9. definitions/tasks/L1/cdp_use/sc_fr_frame_tree_shape__cdpu.json +76 -0
  10. definitions/tasks/L1/cdp_use/sc_fr_iframe_detach__cdpu.json +76 -0
  11. definitions/tasks/L1/cdp_use/sc_fr_nested_two_levels__cdpu.json +76 -0
  12. definitions/tasks/L1/cdp_use/sc_fr_sibling_isolation__cdpu.json +76 -0
  13. definitions/tasks/L1/cdp_use/sc_fr_static_child_read__cdpu.json +72 -0
  14. definitions/tasks/L1/cdp_use/sc_loc_adjacent_sibling__cdpu.json +66 -0
  15. definitions/tasks/L1/cdp_use/sc_loc_attribute_selector_click__cdpu.json +72 -0
  16. definitions/tasks/L1/cdp_use/sc_loc_class_count__cdpu.json +66 -0
  17. definitions/tasks/L1/cdp_use/sc_loc_descendant_scope__cdpu.json +66 -0
  18. definitions/tasks/L1/cdp_use/sc_loc_first_match_semantics__cdpu.json +71 -0
  19. definitions/tasks/L1/cdp_use/sc_loc_iframe_same_origin_read__cdpu.json +71 -0
  20. definitions/tasks/L1/cdp_use/sc_loc_iframe_scope_top_document__cdpu.json +66 -0
  21. definitions/tasks/L1/cdp_use/sc_loc_missing_element_fails_cleanly__cdpu.json +73 -0
  22. definitions/tasks/L1/cdp_use/sc_loc_nth_child_text__cdpu.json +66 -0
  23. definitions/tasks/L1/cdp_use/sc_loc_shadow_closed_hidden__cdpu.json +66 -0
  24. definitions/tasks/L1/cdp_use/sc_loc_shadow_open_pierce__cdpu.json +71 -0
  25. definitions/tasks/L1/cdp_use/sc_locator_textbox_len__cdpu.json +72 -0
  26. definitions/tasks/L1/cdp_use/sc_multi_tab_collect__cdpu.json +84 -0
  27. definitions/tasks/L1/cdp_use/sc_nav_back_restores__cdpu.json +80 -0
  28. definitions/tasks/L1/cdp_use/sc_nav_cross_page__cdpu.json +70 -0
  29. definitions/tasks/L1/cdp_use/sc_nav_forward_after_back__cdpu.json +87 -0
  30. definitions/tasks/L1/cdp_use/sc_nav_hash_change__cdpu.json +75 -0
  31. definitions/tasks/L1/cdp_use/sc_nav_push_state__cdpu.json +70 -0
  32. definitions/tasks/L1/cdp_use/sc_nav_push_state_back__cdpu.json +79 -0
  33. definitions/tasks/L1/cdp_use/sc_nav_redirect_chain__cdpu.json +71 -0
  34. definitions/tasks/L1/cdp_use/sc_nav_reload_resets_dom__cdpu.json +76 -0
  35. definitions/tasks/L1/cdp_use/sc_nav_reload_title__cdpu.json +70 -0
  36. definitions/tasks/L1/cdp_use/sc_nav_replace_state_collapses_entry__cdpu.json +75 -0
  37. definitions/tasks/L1/cdp_use/sc_nav_slow_document__cdpu.json +66 -0
  38. definitions/tasks/L1/cdp_use/sc_nav_title_read__cdpu.json +66 -0
  39. definitions/tasks/L1/cdp_use/sc_net_route_passthrough__cdpu.json +77 -0
  40. definitions/tasks/L1/cdp_use/sc_obs_ax_snapshot_heading__cdpu.json +73 -0
  41. definitions/tasks/L1/cdp_use/sc_obs_ax_snapshot_label__cdpu.json +73 -0
  42. definitions/tasks/L1/cdp_use/sc_obs_box_model_geometry__cdpu.json +72 -0
  43. definitions/tasks/L1/cdp_use/sc_obs_title_url_surface__cdpu.json +73 -0
  44. definitions/tasks/L1/cdp_use/sc_obs_visibility_matrix__cdpu.json +73 -0
  45. definitions/tasks/L1/cdp_use/sc_st_cookie_document_roundtrip__cdpu.json +70 -0
  46. definitions/tasks/L1/cdp_use/sc_st_cookie_survives_reload__cdpu.json +74 -0
  47. definitions/tasks/L1/cdp_use/sc_st_local_roundtrip__cdpu.json +70 -0
  48. definitions/tasks/L1/cdp_use/sc_st_local_shared_same_origin__cdpu.json +77 -0
  49. definitions/tasks/L1/cdp_use/sc_st_local_survives_reload__cdpu.json +74 -0
  50. definitions/tasks/L1/cdp_use/sc_st_session_isolated_new_page__cdpu.json +77 -0
definitions/tasks/L1/cdp_use/sc_form_radio_pick__cdpu.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/form_radio_pick.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Clicks the second radio in a group and derives which one the group reports as checked.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "click_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "opt-b",
15
+ "kind": "saved_equals",
16
+ "label": "b_selected",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "click",
31
+ "selector": "#opt-b"
32
+ },
33
+ {
34
+ "expression": "(document.querySelector('input[name=opt]:checked') || {id: 'none'}).id",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.click",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.input.dispatch_mouse_event"
46
+ ],
47
+ "grader": {
48
+ "checks": [
49
+ "answer_matches_expected"
50
+ ],
51
+ "endpoint": "/__grade__/expected_answer",
52
+ "kind": "server_side"
53
+ },
54
+ "layer": "L1",
55
+ "scene": {
56
+ "kind": "self_hosted_fixture",
57
+ "url": "/v0_4/forms"
58
+ },
59
+ "subset_id": "l1.cdp_use",
60
+ "tags": [
61
+ "family.forms",
62
+ "version.v0_4"
63
+ ],
64
+ "task_id": "sc_form_radio_pick__cdpu",
65
+ "task_version": 1,
66
+ "timeouts": {
67
+ "hard_kill_ms": 45000,
68
+ "task_ms": 30000
69
+ },
70
+ "title": "Clicking one radio selects it and deselects siblings (cdp_use)"
71
+ }
definitions/tasks/L1/cdp_use/sc_form_select_option__cdpu.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/form_select_option.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Selects the Engineering option in the #dept dropdown on the probe controls page; the page's change handler writes 'picked:eng' into #dept-out. Reads it back. Exercises select_option and confirms the driver triggers the change event rather than only setting value.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "select_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "picked:eng",
15
+ "kind": "saved_equals",
16
+ "label": "dept_picked_eng",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "select_option",
31
+ "selector": "#dept",
32
+ "value": "eng"
33
+ },
34
+ {
35
+ "op": "text_content",
36
+ "save_as": "answer",
37
+ "selector": "#dept-out"
38
+ }
39
+ ]
40
+ },
41
+ "features": [
42
+ "fw.cdp_use.op.new_page",
43
+ "fw.cdp_use.op.goto",
44
+ "fw.cdp_use.op.select_option",
45
+ "fw.cdp_use.op.text_content",
46
+ "cdp.dom.set_attribute_value"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_3/probe/controls"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.forms",
63
+ "version.v0_4"
64
+ ],
65
+ "task_id": "sc_form_select_option__cdpu",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 45000,
69
+ "task_ms": 30000
70
+ },
71
+ "title": "Select a dropdown option and observe the change event (cdp_use)"
72
+ }
definitions/tasks/L1/cdp_use/sc_form_submit_roundtrip__cdpu.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/form_submit_roundtrip.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Fills the query input, clicks submit, waits for the reloaded document, and reads the server-echoed query value. Exercises the full fill -> submit -> navigation -> readback chain.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "submit_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "submitted:probe-624",
15
+ "kind": "saved_equals",
16
+ "label": "query_echoed",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "fill",
31
+ "selector": "#q",
32
+ "value": "probe-624"
33
+ },
34
+ {
35
+ "op": "click",
36
+ "selector": "#q-submit"
37
+ },
38
+ {
39
+ "expression": "location.search.indexOf('q=') >= 0 && !!document.getElementById('q-echo')",
40
+ "op": "wait_for_function"
41
+ },
42
+ {
43
+ "op": "text_content",
44
+ "save_as": "answer",
45
+ "selector": "#q-echo"
46
+ }
47
+ ]
48
+ },
49
+ "features": [
50
+ "fw.cdp_use.op.new_page",
51
+ "fw.cdp_use.op.goto",
52
+ "fw.cdp_use.op.fill",
53
+ "fw.cdp_use.op.click",
54
+ "fw.cdp_use.op.wait_for_function",
55
+ "fw.cdp_use.op.text_content",
56
+ "cdp.input.insert_text",
57
+ "cdp.page.navigate"
58
+ ],
59
+ "grader": {
60
+ "checks": [
61
+ "answer_matches_expected"
62
+ ],
63
+ "endpoint": "/__grade__/expected_answer",
64
+ "kind": "server_side"
65
+ },
66
+ "layer": "L1",
67
+ "scene": {
68
+ "kind": "self_hosted_fixture",
69
+ "url": "/v0_4/forms"
70
+ },
71
+ "subset_id": "l1.cdp_use",
72
+ "tags": [
73
+ "family.forms",
74
+ "version.v0_4"
75
+ ],
76
+ "task_id": "sc_form_submit_roundtrip__cdpu",
77
+ "task_version": 1,
78
+ "timeouts": {
79
+ "hard_kill_ms": 45000,
80
+ "task_ms": 30000
81
+ },
82
+ "title": "Submit a GET form and read the echoed query (cdp_use)"
83
+ }
definitions/tasks/L1/cdp_use/sc_form_textarea_fill__cdpu.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/form_textarea_fill.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Fills a textarea and reads its live value through the driver.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "fill_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "ta-line-9",
15
+ "kind": "saved_equals",
16
+ "label": "textarea_roundtrip",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "fill",
31
+ "selector": "#notes",
32
+ "value": "ta-line-9"
33
+ },
34
+ {
35
+ "op": "input_value",
36
+ "save_as": "answer",
37
+ "selector": "#notes"
38
+ }
39
+ ]
40
+ },
41
+ "features": [
42
+ "fw.cdp_use.op.new_page",
43
+ "fw.cdp_use.op.goto",
44
+ "fw.cdp_use.op.fill",
45
+ "fw.cdp_use.op.input_value",
46
+ "cdp.input.insert_text"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_4/forms"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.forms",
63
+ "version.v0_4"
64
+ ],
65
+ "task_id": "sc_form_textarea_fill__cdpu",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 45000,
69
+ "task_ms": 30000
70
+ },
71
+ "title": "Fill a textarea and read it back (cdp_use)"
72
+ }
definitions/tasks/L1/cdp_use/sc_fr_child_posts_parent__cdpu.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_child_posts_parent.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Both static children post a greeting on load; the parent collects them and answers with the sorted join, proving frame scripts executed and the message channel works.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "messages_arrived",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "hello-a|hello-b",
15
+ "kind": "saved_equals",
16
+ "label": "both_children_posted",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.__msgs && window.__msgs.length >= 2",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "window.__msgs.slice().sort().join('|')",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.page.frame_attached",
46
+ "cdp.runtime.evaluate"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_4/frames"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.frames_oopif",
63
+ "version.v0_4"
64
+ ],
65
+ "task_id": "sc_fr_child_posts_parent__cdpu",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 45000,
69
+ "task_ms": 30000
70
+ },
71
+ "title": "Child frames deliver postMessage to the parent document (cdp_use)"
72
+ }
definitions/tasks/L1/cdp_use/sc_fr_child_self_navigation__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_child_self_navigation.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Sets a marker on the parent, navigates the first child frame to a new URL, and answers with the child's new message plus proof the parent was not reloaded.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "child_navigated",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "child-nav2-42:top-alive",
15
+ "kind": "saved_equals",
16
+ "label": "parent_survived",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.__top_alive = 9; frames[0].location.href = '/v0_4/frames/child?tag=nav2'; 'navigating'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "!!frames[0].document.getElementById('msg') && frames[0].document.getElementById('msg').textContent.indexOf('nav2') !== -1",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "expression": "frames[0].document.getElementById('msg').textContent + ':' + (window.__top_alive === 9 ? 'top-alive' : 'top-reloaded')",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.evaluate",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "cdp.page.frame_navigated",
50
+ "cdp.runtime.evaluate"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/v0_4/frames"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.frames_oopif",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_fr_child_self_navigation__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "A child frame navigates itself while the parent document survives (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_fr_cross_origin_blocked__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_cross_origin_blocked.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Inserts an iframe served from the localhost alias of the fixture origin (different origin string, same server), waits for it to load, and confirms the same-origin policy throws SecurityError on document access.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "xo_frame_loaded",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "blocked:SecurityError",
15
+ "kind": "saved_equals",
16
+ "label": "same_origin_policy_enforced",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "var f = document.createElement('iframe'); f.src = 'http://localhost:' + location.port + '/v0_4/frames/child?tag=xb'; f.id = 'xo'; f.onload = function () { window.__xo_loaded = true; }; document.getElementById('slot').appendChild(f); 'inserted'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "window.__xo_loaded === true",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "expression": "(function () { try { var d = frames[2].document; return 'leaked:' + (d ? 'doc' : 'nodoc'); } catch (e) { return 'blocked:' + e.name; } })()",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.evaluate",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "cdp.page.frame_attached",
50
+ "cdp.runtime.evaluate"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/v0_4/frames"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.frames_oopif",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_fr_cross_origin_blocked__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "Top-document JS cannot reach into a cross-origin iframe (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_fr_dynamic_iframe_attach__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_dynamic_iframe_attach.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Inserts a third iframe after load and reads its script-computed message once the new frame's document is live.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "frame_attached",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "child-dyn-42",
15
+ "kind": "saved_equals",
16
+ "label": "dynamic_child_text",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "var f = document.createElement('iframe'); f.src = '/v0_4/frames/child?tag=dyn'; document.getElementById('slot').appendChild(f); 'inserted'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "window.frames.length === 3 && !!frames[2].document.getElementById('msg') && frames[2].document.getElementById('msg').textContent.indexOf('dyn') !== -1",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "expression": "frames[2].document.getElementById('msg').textContent",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.evaluate",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "cdp.page.frame_attached",
50
+ "cdp.runtime.evaluate"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/v0_4/frames"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.frames_oopif",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_fr_dynamic_iframe_attach__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "A dynamically inserted iframe attaches and runs its document (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_fr_frame_tree_shape__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_frame_tree_shape.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Counts frames before and after inserting a child that itself embeds a grandchild, answering with the observed growth of the reachable same-origin tree.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "tree_settled",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "2>3>4",
15
+ "kind": "saved_equals",
16
+ "label": "tree_shape",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.__c0 = window.frames.length; var f = document.createElement('iframe'); f.src = '/v0_4/frames/child?tag=shape&deep=1'; document.getElementById('slot').appendChild(f); 'inserted'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "window.frames.length === 3 && frames[2].frames.length === 1",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "expression": "window.__c0 + '>' + window.frames.length + '>' + (window.frames.length + frames[2].frames.length)",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.evaluate",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "cdp.page.get_frame_tree",
50
+ "cdp.page.frame_attached"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/v0_4/frames"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.frames_oopif",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_fr_frame_tree_shape__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "The live frame tree reflects static plus dynamic children (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_fr_iframe_detach__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_iframe_detach.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Records the initial frame count, removes the first static iframe, waits for the tree to shrink, and answers with the before:after counts.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "frame_detached",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "2:1",
15
+ "kind": "saved_equals",
16
+ "label": "count_shrank",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.__before = window.frames.length; document.getElementById('fa').remove(); 'removed'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "window.frames.length === window.__before - 1",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "expression": "window.__before + ':' + window.frames.length",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.evaluate",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "cdp.page.frame_detached",
50
+ "cdp.runtime.evaluate"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/v0_4/frames"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.frames_oopif",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_fr_iframe_detach__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "Removing an iframe detaches its frame from the tree (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_fr_nested_two_levels__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_nested_two_levels.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Inserts a child that embeds its own child; the top document reads the grandchild's script-computed message through two levels of same-origin frame traversal.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "grandchild_loaded",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "child-leaf-42",
15
+ "kind": "saved_equals",
16
+ "label": "grandchild_text",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "var f = document.createElement('iframe'); f.src = '/v0_4/frames/child?tag=mid&deep=1'; document.getElementById('slot').appendChild(f); 'inserted'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "window.frames.length === 3 && frames[2].frames.length === 1 && !!frames[2].frames[0].document.getElementById('msg') && frames[2].frames[0].document.getElementById('msg').textContent.indexOf('leaf') !== -1",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "expression": "frames[2].frames[0].document.getElementById('msg').textContent",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.evaluate",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "cdp.page.frame_attached",
50
+ "cdp.page.get_frame_tree"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/v0_4/frames"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.frames_oopif",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_fr_nested_two_levels__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "A grandchild frame two levels down is reachable through the frame tree (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_fr_sibling_isolation__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_sibling_isolation.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Pokes a computed value into child A's note element and answers with both children's notes, proving sibling frame documents are distinct.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "poke_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "poked-25:idle",
15
+ "kind": "saved_equals",
16
+ "label": "sibling_untouched",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.frames.length === 2 && !!frames[0].document.getElementById('note') && !!frames[1].document.getElementById('note')",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "frames[0].document.getElementById('note').textContent = 'poked-' + (5 * 5); 'poked'",
35
+ "op": "evaluate"
36
+ },
37
+ {
38
+ "expression": "frames[0].document.getElementById('note').textContent + ':' + frames[1].document.getElementById('note').textContent",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.wait_for_function",
48
+ "fw.cdp_use.op.evaluate",
49
+ "cdp.page.get_frame_tree",
50
+ "cdp.runtime.evaluate"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/v0_4/frames"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.frames_oopif",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_fr_sibling_isolation__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "Writing into one child frame leaves its sibling untouched (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_fr_static_child_read__cdpu.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/fr_static_child_read.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Waits for both static children to load and reads the first child's script-computed message through the frame tree.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "children_loaded",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "child-a-42",
15
+ "kind": "saved_equals",
16
+ "label": "child_text",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.frames.length === 2 && !!frames[0].document.getElementById('msg') && frames[0].document.getElementById('msg').textContent.length > 0",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "frames[0].document.getElementById('msg').textContent",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.page.frame_attached",
46
+ "cdp.runtime.evaluate"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_4/frames"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.frames_oopif",
63
+ "version.v0_4"
64
+ ],
65
+ "task_id": "sc_fr_static_child_read__cdpu",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 45000,
69
+ "task_ms": 30000
70
+ },
71
+ "title": "Read text out of a statically embedded same-origin iframe (cdp_use)"
72
+ }
definitions/tasks/L1/cdp_use/sc_loc_adjacent_sibling__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_adjacent_sibling.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Reads #lead + .next through the driver's text surface.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "read_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "adjacent-33",
15
+ "kind": "saved_equals",
16
+ "label": "adjacent_match",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "text_content",
31
+ "save_as": "answer",
32
+ "selector": "#lead + .next"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.text_content",
40
+ "cdp.dom.query_selector"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/v0_4/locator"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.locator",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_loc_adjacent_sibling__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "Resolve an adjacent-sibling combinator (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_loc_attribute_selector_click__cdpu.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_attribute_selector_click.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Clicks a button addressed by [data-x=\"go-7\"] and reads its handler output. Exercises attribute-selector support in the driver's element resolution.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "click_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "attr-hit-go-7",
15
+ "kind": "saved_equals",
16
+ "label": "handler_saw_attr",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "click",
31
+ "selector": "button[data-x=\"go-7\"]"
32
+ },
33
+ {
34
+ "op": "text_content",
35
+ "save_as": "answer",
36
+ "selector": "#attr-out"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.click",
44
+ "fw.cdp_use.op.text_content",
45
+ "cdp.dom.query_selector",
46
+ "cdp.input.dispatch_mouse_event"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_4/locator"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.locator",
63
+ "version.v0_4"
64
+ ],
65
+ "task_id": "sc_loc_attribute_selector_click__cdpu",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 45000,
69
+ "task_ms": 30000
70
+ },
71
+ "title": "Click an element located by attribute selector (cdp_use)"
72
+ }
definitions/tasks/L1/cdp_use/sc_loc_class_count__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_class_count.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Counts .card elements through the driver's count surface.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "count_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "4",
15
+ "kind": "saved_equals",
16
+ "label": "four_cards",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "count",
31
+ "save_as": "answer",
32
+ "selector": ".card"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.count",
40
+ "cdp.dom.query_selector_all"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/v0_4/locator"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.locator",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_loc_class_count__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "Count elements matching a class selector (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_loc_descendant_scope__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_descendant_scope.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Reads #zone .value where an identical .value also exists outside #zone; the scoped match must win.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "read_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "zone-val-21",
15
+ "kind": "saved_equals",
16
+ "label": "scoped_match",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "text_content",
31
+ "save_as": "answer",
32
+ "selector": "#zone .value"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.text_content",
40
+ "cdp.dom.query_selector"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/v0_4/locator"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.locator",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_loc_descendant_scope__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "A descendant selector stays inside its ancestor (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_loc_first_match_semantics__cdpu.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_first_match_semantics.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Clicks .btn where two buttons match; querySelector semantics require the FIRST one, whose handler records its rank.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "click_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "clicked-first",
15
+ "kind": "saved_equals",
16
+ "label": "first_won",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "click",
31
+ "selector": ".btn"
32
+ },
33
+ {
34
+ "op": "text_content",
35
+ "save_as": "answer",
36
+ "selector": "#btn-out"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.click",
44
+ "fw.cdp_use.op.text_content",
45
+ "cdp.dom.query_selector"
46
+ ],
47
+ "grader": {
48
+ "checks": [
49
+ "answer_matches_expected"
50
+ ],
51
+ "endpoint": "/__grade__/expected_answer",
52
+ "kind": "server_side"
53
+ },
54
+ "layer": "L1",
55
+ "scene": {
56
+ "kind": "self_hosted_fixture",
57
+ "url": "/v0_4/locator"
58
+ },
59
+ "subset_id": "l1.cdp_use",
60
+ "tags": [
61
+ "family.locator",
62
+ "version.v0_4"
63
+ ],
64
+ "task_id": "sc_loc_first_match_semantics__cdpu",
65
+ "task_version": 1,
66
+ "timeouts": {
67
+ "hard_kill_ms": 45000,
68
+ "task_ms": 30000
69
+ },
70
+ "title": "A multi-match selector acts on the first match (cdp_use)"
71
+ }
definitions/tasks/L1/cdp_use/sc_loc_iframe_same_origin_read__cdpu.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_iframe_same_origin_read.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Waits for a srcdoc iframe's document and reads a value computed inside it via contentDocument traversal.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "frame_read_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "frame-msg-55",
15
+ "kind": "saved_equals",
16
+ "label": "frame_content",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "(function(){var f=document.getElementById('child-frame');return !!(f && f.contentDocument && f.contentDocument.getElementById('frame-msg') && f.contentDocument.getElementById('frame-msg').textContent)})()",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "document.getElementById('child-frame').contentDocument.getElementById('frame-msg').textContent",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.runtime.evaluate"
46
+ ],
47
+ "grader": {
48
+ "checks": [
49
+ "answer_matches_expected"
50
+ ],
51
+ "endpoint": "/__grade__/expected_answer",
52
+ "kind": "server_side"
53
+ },
54
+ "layer": "L1",
55
+ "scene": {
56
+ "kind": "self_hosted_fixture",
57
+ "url": "/v0_4/locator"
58
+ },
59
+ "subset_id": "l1.cdp_use",
60
+ "tags": [
61
+ "family.locator",
62
+ "version.v0_4"
63
+ ],
64
+ "task_id": "sc_loc_iframe_same_origin_read__cdpu",
65
+ "task_version": 1,
66
+ "timeouts": {
67
+ "hard_kill_ms": 45000,
68
+ "task_ms": 30000
69
+ },
70
+ "title": "Read content inside a same-origin iframe (cdp_use)"
71
+ }
definitions/tasks/L1/cdp_use/sc_loc_iframe_scope_top_document__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_iframe_scope_top_document.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Both the top document and the iframe contain #dup. The driver's selector surface must return the TOP document's element.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "read_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "main-dup",
15
+ "kind": "saved_equals",
16
+ "label": "top_document_wins",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "text_content",
31
+ "save_as": "answer",
32
+ "selector": "#dup"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.text_content",
40
+ "cdp.dom.query_selector"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/v0_4/locator"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.locator",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_loc_iframe_scope_top_document__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "Selectors resolve in the top document, not the iframe (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_loc_missing_element_fails_cleanly__cdpu.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_missing_element_fails_cleanly.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Reads a selector that matches nothing; the op must fail cleanly (step_fails) and the attempt derives its answer from that failure.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_fails",
10
+ "label": "missing_fails",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "clean-miss",
15
+ "kind": "saved_equals",
16
+ "label": "clean_miss",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expect_fail": true,
31
+ "op": "text_content",
32
+ "save_as": "probe",
33
+ "selector": "#does-not-exist"
34
+ },
35
+ {
36
+ "expression": "document.querySelector('#does-not-exist') === null ? 'clean-miss' : 'phantom'",
37
+ "op": "evaluate",
38
+ "save_as": "answer"
39
+ }
40
+ ]
41
+ },
42
+ "features": [
43
+ "fw.cdp_use.op.new_page",
44
+ "fw.cdp_use.op.goto",
45
+ "fw.cdp_use.op.text_content",
46
+ "fw.cdp_use.op.evaluate",
47
+ "cdp.dom.query_selector"
48
+ ],
49
+ "grader": {
50
+ "checks": [
51
+ "answer_matches_expected"
52
+ ],
53
+ "endpoint": "/__grade__/expected_answer",
54
+ "kind": "server_side"
55
+ },
56
+ "layer": "L1",
57
+ "scene": {
58
+ "kind": "self_hosted_fixture",
59
+ "url": "/v0_4/locator"
60
+ },
61
+ "subset_id": "l1.cdp_use",
62
+ "tags": [
63
+ "family.locator",
64
+ "version.v0_4"
65
+ ],
66
+ "task_id": "sc_loc_missing_element_fails_cleanly__cdpu",
67
+ "task_version": 1,
68
+ "timeouts": {
69
+ "hard_kill_ms": 45000,
70
+ "task_ms": 30000
71
+ },
72
+ "title": "A missing selector fails the op, not the harness (cdp_use)"
73
+ }
definitions/tasks/L1/cdp_use/sc_loc_nth_child_text__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_nth_child_text.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Reads li:nth-child(2) from a three-item list through the driver's text surface.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "read_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "bravo",
15
+ "kind": "saved_equals",
16
+ "label": "second_item",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "text_content",
31
+ "save_as": "answer",
32
+ "selector": "#fruits li:nth-child(2)"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.text_content",
40
+ "cdp.dom.query_selector"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/v0_4/locator"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.locator",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_loc_nth_child_text__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "Read the second list item via :nth-child (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_loc_shadow_closed_hidden__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_shadow_closed_hidden.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "The page attaches a closed shadow root; element.shadowRoot must be null while the host still renders. Confirms closed-mode encapsulation.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "probe_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "closed-hidden",
15
+ "kind": "saved_equals",
16
+ "label": "closed_encapsulated",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "document.getElementById('shadow-closed-host').shadowRoot === null ? 'closed-hidden' : 'exposed'",
31
+ "op": "evaluate",
32
+ "save_as": "answer"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.evaluate",
40
+ "cdp.runtime.evaluate"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/v0_4/locator"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.locator",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_loc_shadow_closed_hidden__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "A closed shadow root is not exposed (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_loc_shadow_open_pierce__cdpu.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/loc_shadow_open_pierce.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "The page attaches an open shadow root at load. Reads the shadow content via explicit shadowRoot traversal - the engine must implement attachShadow and expose shadowRoot.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "shadow_read_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "shadow-open-42",
15
+ "kind": "saved_equals",
16
+ "label": "open_shadow_content",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "!!document.getElementById('shadow-open-host').shadowRoot",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "document.getElementById('shadow-open-host').shadowRoot.getElementById('inner').textContent",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.runtime.evaluate"
46
+ ],
47
+ "grader": {
48
+ "checks": [
49
+ "answer_matches_expected"
50
+ ],
51
+ "endpoint": "/__grade__/expected_answer",
52
+ "kind": "server_side"
53
+ },
54
+ "layer": "L1",
55
+ "scene": {
56
+ "kind": "self_hosted_fixture",
57
+ "url": "/v0_4/locator"
58
+ },
59
+ "subset_id": "l1.cdp_use",
60
+ "tags": [
61
+ "family.locator",
62
+ "version.v0_4"
63
+ ],
64
+ "task_id": "sc_loc_shadow_open_pierce__cdpu",
65
+ "task_version": 1,
66
+ "timeouts": {
67
+ "hard_kill_ms": 45000,
68
+ "task_ms": 30000
69
+ },
70
+ "title": "Read inside an open shadow root (cdp_use)"
71
+ }
definitions/tasks/L1/cdp_use/sc_locator_textbox_len__cdpu.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/locator_textbox_len.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Fills #textbox with a five-character value on the probe controls page; the input handler writes the live length into #textbox-len. Reads it back. Exercises selector resolution plus input-event-derived DOM observation.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "fill_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "5",
15
+ "kind": "saved_equals",
16
+ "label": "len_is_five",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "fill",
31
+ "selector": "#textbox",
32
+ "value": "abcde"
33
+ },
34
+ {
35
+ "op": "text_content",
36
+ "save_as": "answer",
37
+ "selector": "#textbox-len"
38
+ }
39
+ ]
40
+ },
41
+ "features": [
42
+ "fw.cdp_use.op.new_page",
43
+ "fw.cdp_use.op.goto",
44
+ "fw.cdp_use.op.fill",
45
+ "fw.cdp_use.op.text_content",
46
+ "cdp.input.insert_text"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_3/probe/controls"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.locator",
63
+ "version.v0_4"
64
+ ],
65
+ "task_id": "sc_locator_textbox_len__cdpu",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 45000,
69
+ "task_ms": 30000
70
+ },
71
+ "title": "Type into a textbox and read the derived length output (cdp_use)"
72
+ }
definitions/tasks/L1/cdp_use/sc_multi_tab_collect__cdpu.json ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/multi_tab_collect.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Opens two live targets, reads a distinct heading from each, and aggregates both values in the second tab through same-origin session state.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "first_value_collected",
11
+ "step": 2
12
+ },
13
+ {
14
+ "kind": "step_ok",
15
+ "label": "second_target_created",
16
+ "step": 3
17
+ },
18
+ {
19
+ "expected": "CDP Core Fixture|Page Two",
20
+ "kind": "saved_equals",
21
+ "label": "two_tab_values_aggregated",
22
+ "name": "answer"
23
+ }
24
+ ],
25
+ "kind": "thin_cdp_use",
26
+ "steps": [
27
+ {
28
+ "op": "new_page"
29
+ },
30
+ {
31
+ "op": "goto",
32
+ "url": "{fixture_url}"
33
+ },
34
+ {
35
+ "expression": "localStorage.setItem('abb-first-tab-heading', document.getElementById('title').textContent.trim()), localStorage.getItem('abb-first-tab-heading')",
36
+ "op": "evaluate"
37
+ },
38
+ {
39
+ "op": "new_page"
40
+ },
41
+ {
42
+ "op": "goto",
43
+ "url": "{fixture_base_url}/page2"
44
+ },
45
+ {
46
+ "expression": "localStorage.getItem('abb-first-tab-heading') + '|' + document.getElementById('title').textContent.trim()",
47
+ "op": "evaluate",
48
+ "save_as": "answer"
49
+ }
50
+ ]
51
+ },
52
+ "features": [
53
+ "fw.cdp_use.op.new_page",
54
+ "fw.cdp_use.op.goto",
55
+ "fw.cdp_use.op.evaluate",
56
+ "cdp.target.create_target",
57
+ "cdp.target.attach_to_target"
58
+ ],
59
+ "grader": {
60
+ "checks": [
61
+ "answer_matches_expected"
62
+ ],
63
+ "endpoint": "/__grade__/expected_answer",
64
+ "kind": "server_side"
65
+ },
66
+ "layer": "L1",
67
+ "scene": {
68
+ "kind": "self_hosted_fixture",
69
+ "url": "/l1/core"
70
+ },
71
+ "subset_id": "l1.cdp_use",
72
+ "tags": [
73
+ "family.connect_session",
74
+ "version.v0_4",
75
+ "purpose.issue_106"
76
+ ],
77
+ "task_id": "sc_multi_tab_collect__cdpu",
78
+ "task_version": 1,
79
+ "timeouts": {
80
+ "hard_kill_ms": 45000,
81
+ "task_ms": 30000
82
+ },
83
+ "title": "Collect and aggregate values from two tabs in one driver session (cdp_use)"
84
+ }
definitions/tasks/L1/cdp_use/sc_nav_back_restores__cdpu.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_back_restores.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Navigates core -> page2, then drives the browser's history back through the driver's own surface and confirms the first document's heading is restored.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "back_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "CDP Core Fixture",
15
+ "kind": "saved_equals",
16
+ "label": "first_doc_restored",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "goto",
31
+ "url": "{fixture_base_url}/page2"
32
+ },
33
+ {
34
+ "op": "go_back"
35
+ },
36
+ {
37
+ "expression": "document.getElementById('title') && document.getElementById('title').textContent.indexOf('CDP') === 0",
38
+ "op": "wait_for_function"
39
+ },
40
+ {
41
+ "op": "text_content",
42
+ "save_as": "answer",
43
+ "selector": "#title"
44
+ }
45
+ ]
46
+ },
47
+ "features": [
48
+ "fw.cdp_use.op.new_page",
49
+ "fw.cdp_use.op.goto",
50
+ "fw.cdp_use.op.go_back",
51
+ "fw.cdp_use.op.wait_for_function",
52
+ "fw.cdp_use.op.text_content",
53
+ "cdp.page.get_navigation_history",
54
+ "cdp.page.navigate_to_history_entry"
55
+ ],
56
+ "grader": {
57
+ "checks": [
58
+ "answer_matches_expected"
59
+ ],
60
+ "endpoint": "/__grade__/expected_answer",
61
+ "kind": "server_side"
62
+ },
63
+ "layer": "L1",
64
+ "scene": {
65
+ "kind": "self_hosted_fixture",
66
+ "url": "/l1/core"
67
+ },
68
+ "subset_id": "l1.cdp_use",
69
+ "tags": [
70
+ "family.navigation_lifecycle",
71
+ "version.v0_4"
72
+ ],
73
+ "task_id": "sc_nav_back_restores__cdpu",
74
+ "task_version": 1,
75
+ "timeouts": {
76
+ "hard_kill_ms": 45000,
77
+ "task_ms": 30000
78
+ },
79
+ "title": "history back returns to the first document (cdp_use)"
80
+ }
definitions/tasks/L1/cdp_use/sc_nav_cross_page__cdpu.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_cross_page.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Navigates to the core fixture, then to a second page, and reads the second page's #title. Exercises a second full navigation (document swap) and confirms the driver observes the new document rather than the stale first one.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "second_goto_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "Page Two",
15
+ "kind": "saved_equals",
16
+ "label": "heading_is_page_two",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "goto",
31
+ "url": "{fixture_base_url}/page2"
32
+ },
33
+ {
34
+ "op": "text_content",
35
+ "save_as": "answer",
36
+ "selector": "#title"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.text_content",
44
+ "cdp.page.navigate"
45
+ ],
46
+ "grader": {
47
+ "checks": [
48
+ "answer_matches_expected"
49
+ ],
50
+ "endpoint": "/__grade__/expected_answer",
51
+ "kind": "server_side"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/l1/core"
57
+ },
58
+ "subset_id": "l1.cdp_use",
59
+ "tags": [
60
+ "family.navigation_lifecycle",
61
+ "version.v0_4"
62
+ ],
63
+ "task_id": "sc_nav_cross_page__cdpu",
64
+ "task_version": 1,
65
+ "timeouts": {
66
+ "hard_kill_ms": 45000,
67
+ "task_ms": 30000
68
+ },
69
+ "title": "Navigate across two pages and read the second heading (cdp_use)"
70
+ }
definitions/tasks/L1/cdp_use/sc_nav_forward_after_back__cdpu.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_forward_after_back.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Navigates core -> page2, goes back, then forward again, and reads the second document's heading.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "forward_ok",
11
+ "step": 5
12
+ },
13
+ {
14
+ "expected": "Page Two",
15
+ "kind": "saved_equals",
16
+ "label": "second_doc_again",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "goto",
31
+ "url": "{fixture_base_url}/page2"
32
+ },
33
+ {
34
+ "op": "go_back"
35
+ },
36
+ {
37
+ "expression": "location.pathname === '/l1/core'",
38
+ "op": "wait_for_function"
39
+ },
40
+ {
41
+ "op": "go_forward"
42
+ },
43
+ {
44
+ "expression": "location.pathname === '/page2'",
45
+ "op": "wait_for_function"
46
+ },
47
+ {
48
+ "op": "text_content",
49
+ "save_as": "answer",
50
+ "selector": "#title"
51
+ }
52
+ ]
53
+ },
54
+ "features": [
55
+ "fw.cdp_use.op.new_page",
56
+ "fw.cdp_use.op.goto",
57
+ "fw.cdp_use.op.go_back",
58
+ "fw.cdp_use.op.wait_for_function",
59
+ "fw.cdp_use.op.go_forward",
60
+ "fw.cdp_use.op.text_content",
61
+ "cdp.page.navigate_to_history_entry"
62
+ ],
63
+ "grader": {
64
+ "checks": [
65
+ "answer_matches_expected"
66
+ ],
67
+ "endpoint": "/__grade__/expected_answer",
68
+ "kind": "server_side"
69
+ },
70
+ "layer": "L1",
71
+ "scene": {
72
+ "kind": "self_hosted_fixture",
73
+ "url": "/l1/core"
74
+ },
75
+ "subset_id": "l1.cdp_use",
76
+ "tags": [
77
+ "family.navigation_lifecycle",
78
+ "version.v0_4"
79
+ ],
80
+ "task_id": "sc_nav_forward_after_back__cdpu",
81
+ "task_version": 1,
82
+ "timeouts": {
83
+ "hard_kill_ms": 45000,
84
+ "task_ms": 30000
85
+ },
86
+ "title": "history forward re-reaches the second document (cdp_use)"
87
+ }
definitions/tasks/L1/cdp_use/sc_nav_hash_change__cdpu.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_hash_change.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Sets location.hash in-page and confirms both the hash and that no document reload happened (a marker global survives).",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "hash_settled",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "#sec-2:no-reload",
15
+ "kind": "saved_equals",
16
+ "label": "hash_no_reload",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.__abb_alive = 7, location.hash = 'sec-2', 'set'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "location.hash === '#sec-2'",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "expression": "location.hash + ':' + (window.__abb_alive === 7 ? 'no-reload' : 'reloaded')",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.evaluate",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "cdp.page.navigated_within_document"
50
+ ],
51
+ "grader": {
52
+ "checks": [
53
+ "answer_matches_expected"
54
+ ],
55
+ "endpoint": "/__grade__/expected_answer",
56
+ "kind": "server_side"
57
+ },
58
+ "layer": "L1",
59
+ "scene": {
60
+ "kind": "self_hosted_fixture",
61
+ "url": "/l1/core"
62
+ },
63
+ "subset_id": "l1.cdp_use",
64
+ "tags": [
65
+ "family.navigation_lifecycle",
66
+ "version.v0_4"
67
+ ],
68
+ "task_id": "sc_nav_hash_change__cdpu",
69
+ "task_version": 1,
70
+ "timeouts": {
71
+ "hard_kill_ms": 45000,
72
+ "task_ms": 30000
73
+ },
74
+ "title": "hash navigation changes location without a reload (cdp_use)"
75
+ }
definitions/tasks/L1/cdp_use/sc_nav_push_state__cdpu.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_push_state.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Pushes a same-document history entry with a query string and derives the new search plus proof that the document did not reload.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "derive_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "?spa=1:no-reload",
15
+ "kind": "saved_equals",
16
+ "label": "spa_url_no_reload",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.__abb_alive = 3, history.pushState({}, '', '/l1/core?spa=1'), 'pushed'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "location.search + ':' + (window.__abb_alive === 3 ? 'no-reload' : 'reloaded')",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.evaluate",
44
+ "cdp.page.navigated_within_document"
45
+ ],
46
+ "grader": {
47
+ "checks": [
48
+ "answer_matches_expected"
49
+ ],
50
+ "endpoint": "/__grade__/expected_answer",
51
+ "kind": "server_side"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/l1/core"
57
+ },
58
+ "subset_id": "l1.cdp_use",
59
+ "tags": [
60
+ "family.navigation_lifecycle",
61
+ "version.v0_4"
62
+ ],
63
+ "task_id": "sc_nav_push_state__cdpu",
64
+ "task_version": 1,
65
+ "timeouts": {
66
+ "hard_kill_ms": 45000,
67
+ "task_ms": 30000
68
+ },
69
+ "title": "history.pushState changes the URL without a load (cdp_use)"
70
+ }
definitions/tasks/L1/cdp_use/sc_nav_push_state_back__cdpu.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_push_state_back.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Pushes a same-document entry, then drives history back through the driver and confirms the original URL is restored without a reload.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "back_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "/l1/core:no-reload",
15
+ "kind": "saved_equals",
16
+ "label": "back_in_document",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "window.__abb_alive = 5, history.pushState({}, '', '/l1/core?spa=2'), 'pushed'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "op": "go_back"
35
+ },
36
+ {
37
+ "expression": "location.search === ''",
38
+ "op": "wait_for_function"
39
+ },
40
+ {
41
+ "expression": "(location.pathname + location.search) + ':' + (window.__abb_alive === 5 ? 'no-reload' : 'reloaded')",
42
+ "op": "evaluate",
43
+ "save_as": "answer"
44
+ }
45
+ ]
46
+ },
47
+ "features": [
48
+ "fw.cdp_use.op.new_page",
49
+ "fw.cdp_use.op.goto",
50
+ "fw.cdp_use.op.evaluate",
51
+ "fw.cdp_use.op.go_back",
52
+ "fw.cdp_use.op.wait_for_function",
53
+ "cdp.page.navigated_within_document"
54
+ ],
55
+ "grader": {
56
+ "checks": [
57
+ "answer_matches_expected"
58
+ ],
59
+ "endpoint": "/__grade__/expected_answer",
60
+ "kind": "server_side"
61
+ },
62
+ "layer": "L1",
63
+ "scene": {
64
+ "kind": "self_hosted_fixture",
65
+ "url": "/l1/core"
66
+ },
67
+ "subset_id": "l1.cdp_use",
68
+ "tags": [
69
+ "family.navigation_lifecycle",
70
+ "version.v0_4"
71
+ ],
72
+ "task_id": "sc_nav_push_state_back__cdpu",
73
+ "task_version": 1,
74
+ "timeouts": {
75
+ "hard_kill_ms": 45000,
76
+ "task_ms": 30000
77
+ },
78
+ "title": "history back pops a pushState entry in-document (cdp_use)"
79
+ }
definitions/tasks/L1/cdp_use/sc_nav_redirect_chain__cdpu.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_redirect_chain.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Navigates to an endpoint that 302-redirects twice before landing on a page carrying a redirect-count marker. The driver must settle on the FINAL document.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "chain_followed",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "landed-after-redirects",
15
+ "kind": "saved_equals",
16
+ "label": "final_doc",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_base_url}/v0_4/redirect/hop?n=2"
28
+ },
29
+ {
30
+ "expression": "!!document.getElementById('redirect-landed')",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "op": "text_content",
35
+ "save_as": "answer",
36
+ "selector": "#redirect-landed"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.text_content",
45
+ "cdp.network.request_will_be_sent"
46
+ ],
47
+ "grader": {
48
+ "checks": [
49
+ "answer_matches_expected"
50
+ ],
51
+ "endpoint": "/__grade__/expected_answer",
52
+ "kind": "server_side"
53
+ },
54
+ "layer": "L1",
55
+ "scene": {
56
+ "kind": "self_hosted_fixture",
57
+ "url": "/v0_4/redirect/hop?n=2"
58
+ },
59
+ "subset_id": "l1.cdp_use",
60
+ "tags": [
61
+ "family.navigation_lifecycle",
62
+ "version.v0_4"
63
+ ],
64
+ "task_id": "sc_nav_redirect_chain__cdpu",
65
+ "task_version": 1,
66
+ "timeouts": {
67
+ "hard_kill_ms": 45000,
68
+ "task_ms": 30000
69
+ },
70
+ "title": "goto follows a 302 redirect chain to the final document (cdp_use)"
71
+ }
definitions/tasks/L1/cdp_use/sc_nav_reload_resets_dom__cdpu.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_reload_resets_dom.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Fills an input, reloads the page, and confirms the fresh document no longer carries the typed value. Exercises Page.reload semantics: a real reload must produce a new document, not restore transient DOM state.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "reload_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "reset-after-reload",
15
+ "kind": "saved_equals",
16
+ "label": "dom_state_reset",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "fill",
31
+ "selector": "#field",
32
+ "value": "transient-77"
33
+ },
34
+ {
35
+ "op": "reload"
36
+ },
37
+ {
38
+ "expression": "document.getElementById('field').value === '' ? 'reset-after-reload' : 'kept:' + document.getElementById('field').value",
39
+ "op": "evaluate",
40
+ "save_as": "answer"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.fill",
48
+ "fw.cdp_use.op.reload",
49
+ "fw.cdp_use.op.evaluate",
50
+ "cdp.page.reload"
51
+ ],
52
+ "grader": {
53
+ "checks": [
54
+ "answer_matches_expected"
55
+ ],
56
+ "endpoint": "/__grade__/expected_answer",
57
+ "kind": "server_side"
58
+ },
59
+ "layer": "L1",
60
+ "scene": {
61
+ "kind": "self_hosted_fixture",
62
+ "url": "/l1/core"
63
+ },
64
+ "subset_id": "l1.cdp_use",
65
+ "tags": [
66
+ "family.navigation_lifecycle",
67
+ "version.v0_4"
68
+ ],
69
+ "task_id": "sc_nav_reload_resets_dom__cdpu",
70
+ "task_version": 1,
71
+ "timeouts": {
72
+ "hard_kill_ms": 45000,
73
+ "task_ms": 30000
74
+ },
75
+ "title": "Reload discards un-persisted DOM state (cdp_use)"
76
+ }
definitions/tasks/L1/cdp_use/sc_nav_reload_title__cdpu.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_reload_title.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Navigates to the core fixture, reloads it, and re-reads #title. Exercises the reload lifecycle: the driver must drive a fresh document load and still resolve the selector against the reloaded page.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "reload_ok",
11
+ "step": 2
12
+ },
13
+ {
14
+ "expected": "CDP Core Fixture",
15
+ "kind": "saved_equals",
16
+ "label": "heading_after_reload",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "reload"
31
+ },
32
+ {
33
+ "op": "text_content",
34
+ "save_as": "answer",
35
+ "selector": "#title"
36
+ }
37
+ ]
38
+ },
39
+ "features": [
40
+ "fw.cdp_use.op.new_page",
41
+ "fw.cdp_use.op.goto",
42
+ "fw.cdp_use.op.reload",
43
+ "fw.cdp_use.op.text_content",
44
+ "cdp.page.reload"
45
+ ],
46
+ "grader": {
47
+ "checks": [
48
+ "answer_matches_expected"
49
+ ],
50
+ "endpoint": "/__grade__/expected_answer",
51
+ "kind": "server_side"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/l1/core"
57
+ },
58
+ "subset_id": "l1.cdp_use",
59
+ "tags": [
60
+ "family.navigation_lifecycle",
61
+ "version.v0_4"
62
+ ],
63
+ "task_id": "sc_nav_reload_title__cdpu",
64
+ "task_version": 1,
65
+ "timeouts": {
66
+ "hard_kill_ms": 45000,
67
+ "task_ms": 30000
68
+ },
69
+ "title": "Reload the page and re-read the heading (cdp_use)"
70
+ }
definitions/tasks/L1/cdp_use/sc_nav_replace_state_collapses_entry__cdpu.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_replace_state_collapses_entry.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Pushes one history entry, replaces it in place, then navigates back once. If replaceState correctly rewrote the pushed entry, a single back lands on the original URL with no query string. A driver or engine that materialises replaceState as an extra entry lands on the intermediate URL instead.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "back_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "entry-collapsed",
15
+ "kind": "saved_equals",
16
+ "label": "single_entry_semantics",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "history.pushState({}, '', '?step=push'); history.replaceState({}, '', '?step=replace'); location.search",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "op": "go_back"
35
+ },
36
+ {
37
+ "expression": "location.search === '' ? 'entry-collapsed' : 'extra-entry:' + location.search",
38
+ "op": "evaluate",
39
+ "save_as": "answer"
40
+ }
41
+ ]
42
+ },
43
+ "features": [
44
+ "fw.cdp_use.op.new_page",
45
+ "fw.cdp_use.op.goto",
46
+ "fw.cdp_use.op.evaluate",
47
+ "fw.cdp_use.op.go_back",
48
+ "cdp.page.get_navigation_history",
49
+ "cdp.page.navigate_to_history_entry"
50
+ ],
51
+ "grader": {
52
+ "checks": [
53
+ "answer_matches_expected"
54
+ ],
55
+ "endpoint": "/__grade__/expected_answer",
56
+ "kind": "server_side"
57
+ },
58
+ "layer": "L1",
59
+ "scene": {
60
+ "kind": "self_hosted_fixture",
61
+ "url": "/l1/core"
62
+ },
63
+ "subset_id": "l1.cdp_use",
64
+ "tags": [
65
+ "family.navigation_lifecycle",
66
+ "version.v0_4"
67
+ ],
68
+ "task_id": "sc_nav_replace_state_collapses_entry__cdpu",
69
+ "task_version": 1,
70
+ "timeouts": {
71
+ "hard_kill_ms": 45000,
72
+ "task_ms": 30000
73
+ },
74
+ "title": "history.replaceState rewrites the current entry instead of adding one (cdp_use)"
75
+ }
definitions/tasks/L1/cdp_use/sc_nav_slow_document__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_slow_document.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Navigates to an endpoint that holds the response for 1.2s before serving the document. A driver that gives up early or reads before the body arrives fails.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "slow_goto_ok",
11
+ "step": 1
12
+ },
13
+ {
14
+ "expected": "slow-99",
15
+ "kind": "saved_equals",
16
+ "label": "slow_doc_read",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_base_url}/v0_4/slow?ms=1200"
28
+ },
29
+ {
30
+ "op": "text_content",
31
+ "save_as": "answer",
32
+ "selector": "#slow-title"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.text_content",
40
+ "cdp.page.navigate"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/v0_4/slow?ms=1200"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.navigation_lifecycle",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_nav_slow_document__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "goto waits out a slow-responding document (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_nav_title_read__cdpu.json ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/nav_title_read.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Opens a page, navigates to the core fixture, and reads the #title heading text. Exercises the most basic navigation + DOM-read contract that every driver must honor.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "goto_ok",
11
+ "step": 1
12
+ },
13
+ {
14
+ "expected": "CDP Core Fixture",
15
+ "kind": "saved_equals",
16
+ "label": "heading_is_core_fixture",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "text_content",
31
+ "save_as": "answer",
32
+ "selector": "#title"
33
+ }
34
+ ]
35
+ },
36
+ "features": [
37
+ "fw.cdp_use.op.new_page",
38
+ "fw.cdp_use.op.goto",
39
+ "fw.cdp_use.op.text_content",
40
+ "cdp.page.navigate"
41
+ ],
42
+ "grader": {
43
+ "checks": [
44
+ "answer_matches_expected"
45
+ ],
46
+ "endpoint": "/__grade__/expected_answer",
47
+ "kind": "server_side"
48
+ },
49
+ "layer": "L1",
50
+ "scene": {
51
+ "kind": "self_hosted_fixture",
52
+ "url": "/l1/core"
53
+ },
54
+ "subset_id": "l1.cdp_use",
55
+ "tags": [
56
+ "family.navigation_lifecycle",
57
+ "version.v0_4"
58
+ ],
59
+ "task_id": "sc_nav_title_read__cdpu",
60
+ "task_version": 1,
61
+ "timeouts": {
62
+ "hard_kill_ms": 45000,
63
+ "task_ms": 30000
64
+ },
65
+ "title": "Navigate and read the page heading (cdp_use)"
66
+ }
definitions/tasks/L1/cdp_use/sc_net_route_passthrough__cdpu.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/net_route_passthrough.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Control case for the family: with no interception armed, the page fetch must hit the real endpoint and compute from the server payload.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "fetch_done",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "server:72",
15
+ "kind": "saved_equals",
16
+ "label": "real_payload",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "op": "click",
31
+ "selector": "#btn-data"
32
+ },
33
+ {
34
+ "expression": "document.getElementById('net-out').textContent.indexOf('server:') !== -1",
35
+ "op": "wait_for_function"
36
+ },
37
+ {
38
+ "op": "text_content",
39
+ "save_as": "answer",
40
+ "selector": "#net-out"
41
+ }
42
+ ]
43
+ },
44
+ "features": [
45
+ "fw.cdp_use.op.new_page",
46
+ "fw.cdp_use.op.goto",
47
+ "fw.cdp_use.op.click",
48
+ "fw.cdp_use.op.wait_for_function",
49
+ "fw.cdp_use.op.text_content",
50
+ "cdp.network.request_will_be_sent",
51
+ "cdp.network.response_received"
52
+ ],
53
+ "grader": {
54
+ "checks": [
55
+ "answer_matches_expected"
56
+ ],
57
+ "endpoint": "/__grade__/expected_answer",
58
+ "kind": "server_side"
59
+ },
60
+ "layer": "L1",
61
+ "scene": {
62
+ "kind": "self_hosted_fixture",
63
+ "url": "/v0_4/net"
64
+ },
65
+ "subset_id": "l1.cdp_use",
66
+ "tags": [
67
+ "family.network_interception",
68
+ "version.v0_4"
69
+ ],
70
+ "task_id": "sc_net_route_passthrough__cdpu",
71
+ "task_version": 1,
72
+ "timeouts": {
73
+ "hard_kill_ms": 45000,
74
+ "task_ms": 30000
75
+ },
76
+ "title": "An unintercepted fetch reaches the real server (cdp_use)"
77
+ }
definitions/tasks/L1/cdp_use/sc_obs_ax_snapshot_heading__cdpu.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/obs_ax_snapshot_heading.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "best_effort",
5
+ "description": "Takes an AX snapshot and checks the computed heading text is exposed on the tree.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "snapshot_taken",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "ax-heading-63",
15
+ "kind": "saved_contains",
16
+ "label": "heading_present",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "document.getElementById('ax-heading').textContent.indexOf('ax-heading-') !== -1",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "op": "ax_snapshot",
35
+ "save_as": "answer"
36
+ }
37
+ ]
38
+ },
39
+ "features": [
40
+ "fw.cdp_use.op.new_page",
41
+ "fw.cdp_use.op.goto",
42
+ "fw.cdp_use.op.wait_for_function",
43
+ "fw.cdp_use.op.ax_snapshot",
44
+ "cdp.accessibility.get_full_ax_tree"
45
+ ],
46
+ "grader": {
47
+ "checks": [
48
+ "answer_matches_expected"
49
+ ],
50
+ "endpoint": "/__grade__/expected_answer",
51
+ "kind": "server_side"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/v0_4/obs"
57
+ },
58
+ "subset_id": "l1.cdp_use",
59
+ "tags": [
60
+ "family.observation",
61
+ "version.v0_4",
62
+ "purpose.issue_106",
63
+ "purpose.issue_106_snapshot",
64
+ "purpose.diagnostic"
65
+ ],
66
+ "task_id": "sc_obs_ax_snapshot_heading__cdpu",
67
+ "task_version": 2,
68
+ "timeouts": {
69
+ "hard_kill_ms": 45000,
70
+ "task_ms": 30000
71
+ },
72
+ "title": "The accessibility snapshot reflects heading structure (cdp_use)"
73
+ }
definitions/tasks/L1/cdp_use/sc_obs_ax_snapshot_label__cdpu.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/obs_ax_snapshot_label.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "best_effort",
5
+ "description": "Takes an AX snapshot and checks it contains the accessible name that the page computed at load.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "snapshot_taken",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "ax-name-63",
15
+ "kind": "saved_contains",
16
+ "label": "computed_label_present",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "document.getElementById('ax-btn').getAttribute('aria-label') !== null",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "op": "ax_snapshot",
35
+ "save_as": "answer"
36
+ }
37
+ ]
38
+ },
39
+ "features": [
40
+ "fw.cdp_use.op.new_page",
41
+ "fw.cdp_use.op.goto",
42
+ "fw.cdp_use.op.wait_for_function",
43
+ "fw.cdp_use.op.ax_snapshot",
44
+ "cdp.accessibility.get_full_ax_tree"
45
+ ],
46
+ "grader": {
47
+ "checks": [
48
+ "answer_matches_expected"
49
+ ],
50
+ "endpoint": "/__grade__/expected_answer",
51
+ "kind": "server_side"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/v0_4/obs"
57
+ },
58
+ "subset_id": "l1.cdp_use",
59
+ "tags": [
60
+ "family.observation",
61
+ "version.v0_4",
62
+ "purpose.issue_106",
63
+ "purpose.issue_106_snapshot",
64
+ "purpose.diagnostic"
65
+ ],
66
+ "task_id": "sc_obs_ax_snapshot_label__cdpu",
67
+ "task_version": 2,
68
+ "timeouts": {
69
+ "hard_kill_ms": 45000,
70
+ "task_ms": 30000
71
+ },
72
+ "title": "The accessibility snapshot carries a script-computed aria-label (cdp_use)"
73
+ }
definitions/tasks/L1/cdp_use/sc_obs_box_model_geometry__cdpu.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/obs_box_model_geometry.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "best_effort",
5
+ "description": "Reads the bounding box of a 120x48 element and answers with its rounded dimensions — the box-model observation surface.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "geometry_read",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "w120:h48",
15
+ "kind": "saved_equals",
16
+ "label": "box_dimensions",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "!!document.getElementById('box')",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "(function () { var r = document.getElementById('box').getBoundingClientRect(); return 'w' + Math.round(r.width) + ':h' + Math.round(r.height); })()",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.dom.get_box_model"
46
+ ],
47
+ "grader": {
48
+ "checks": [
49
+ "answer_matches_expected"
50
+ ],
51
+ "endpoint": "/__grade__/expected_answer",
52
+ "kind": "server_side"
53
+ },
54
+ "layer": "L1",
55
+ "scene": {
56
+ "kind": "self_hosted_fixture",
57
+ "url": "/v0_4/obs"
58
+ },
59
+ "subset_id": "l1.cdp_use",
60
+ "tags": [
61
+ "family.observation",
62
+ "version.v0_4",
63
+ "purpose.diagnostic"
64
+ ],
65
+ "task_id": "sc_obs_box_model_geometry__cdpu",
66
+ "task_version": 1,
67
+ "timeouts": {
68
+ "hard_kill_ms": 45000,
69
+ "task_ms": 30000
70
+ },
71
+ "title": "Layout geometry of a fixed-size element is observable (cdp_use)"
72
+ }
definitions/tasks/L1/cdp_use/sc_obs_title_url_surface__cdpu.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/obs_title_url_surface.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "best_effort",
5
+ "description": "Answers with the live document title joined with the pathname — the most basic observation pair every driver must expose.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "surface_read",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "Observation Fixture|/v0_4/obs",
15
+ "kind": "saved_equals",
16
+ "label": "title_url_pair",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "document.title.length > 0",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "document.title + '|' + location.pathname",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.runtime.evaluate",
46
+ "cdp.page.navigate"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_4/obs"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.observation",
63
+ "version.v0_4",
64
+ "purpose.diagnostic"
65
+ ],
66
+ "task_id": "sc_obs_title_url_surface__cdpu",
67
+ "task_version": 1,
68
+ "timeouts": {
69
+ "hard_kill_ms": 45000,
70
+ "task_ms": 30000
71
+ },
72
+ "title": "Document title and URL observation surfaces agree with the page (cdp_use)"
73
+ }
definitions/tasks/L1/cdp_use/sc_obs_visibility_matrix__cdpu.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/obs_visibility_matrix.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "best_effort",
5
+ "description": "Computes a visibility matrix over a visible and a hidden element from live layout state.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "matrix_read",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "vis:1|hid:0",
15
+ "kind": "saved_equals",
16
+ "label": "visibility_split",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "!!document.getElementById('visible-one') && !!document.getElementById('hidden-one')",
31
+ "op": "wait_for_function"
32
+ },
33
+ {
34
+ "expression": "(function () { var v = document.getElementById('visible-one').getClientRects().length > 0; var h = document.getElementById('hidden-one').getClientRects().length > 0; return 'vis:' + (v ? 1 : 0) + '|hid:' + (h ? 1 : 0); })()",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.wait_for_function",
44
+ "fw.cdp_use.op.evaluate",
45
+ "cdp.dom.get_box_model",
46
+ "cdp.runtime.evaluate"
47
+ ],
48
+ "grader": {
49
+ "checks": [
50
+ "answer_matches_expected"
51
+ ],
52
+ "endpoint": "/__grade__/expected_answer",
53
+ "kind": "server_side"
54
+ },
55
+ "layer": "L1",
56
+ "scene": {
57
+ "kind": "self_hosted_fixture",
58
+ "url": "/v0_4/obs"
59
+ },
60
+ "subset_id": "l1.cdp_use",
61
+ "tags": [
62
+ "family.observation",
63
+ "version.v0_4",
64
+ "purpose.diagnostic"
65
+ ],
66
+ "task_id": "sc_obs_visibility_matrix__cdpu",
67
+ "task_version": 1,
68
+ "timeouts": {
69
+ "hard_kill_ms": 45000,
70
+ "task_ms": 30000
71
+ },
72
+ "title": "Visible and display:none elements are distinguishable (cdp_use)"
73
+ }
definitions/tasks/L1/cdp_use/sc_st_cookie_document_roundtrip__cdpu.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/st_cookie_document_roundtrip.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Sets a cookie via document.cookie and parses it back out of the cookie string.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "cookie_read_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "c-71",
15
+ "kind": "saved_equals",
16
+ "label": "cookie_roundtrips",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "document.cookie = 'abbk=c-' + (71 + 0), 'set'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "(document.cookie.match(/abbk=([^;]+)/) || [])[1] || 'missing'",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.evaluate",
44
+ "cdp.network.get_cookies"
45
+ ],
46
+ "grader": {
47
+ "checks": [
48
+ "answer_matches_expected"
49
+ ],
50
+ "endpoint": "/__grade__/expected_answer",
51
+ "kind": "server_side"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/l1/core"
57
+ },
58
+ "subset_id": "l1.cdp_use",
59
+ "tags": [
60
+ "family.state",
61
+ "version.v0_4"
62
+ ],
63
+ "task_id": "sc_st_cookie_document_roundtrip__cdpu",
64
+ "task_version": 1,
65
+ "timeouts": {
66
+ "hard_kill_ms": 45000,
67
+ "task_ms": 30000
68
+ },
69
+ "title": "document.cookie set/read round-trip (cdp_use)"
70
+ }
definitions/tasks/L1/cdp_use/sc_st_cookie_survives_reload__cdpu.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/st_cookie_survives_reload.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Sets a cookie, reloads, and parses the cookie back. Exercises cookie-jar persistence across navigation.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "reload_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "c-88",
15
+ "kind": "saved_equals",
16
+ "label": "cookie_survives",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "document.cookie = 'abbr=c-' + (44 * 2), 'set'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "op": "reload"
35
+ },
36
+ {
37
+ "expression": "(document.cookie.match(/abbr=([^;]+)/) || [])[1] || 'missing'",
38
+ "op": "evaluate",
39
+ "save_as": "answer"
40
+ }
41
+ ]
42
+ },
43
+ "features": [
44
+ "fw.cdp_use.op.new_page",
45
+ "fw.cdp_use.op.goto",
46
+ "fw.cdp_use.op.evaluate",
47
+ "fw.cdp_use.op.reload",
48
+ "cdp.page.reload"
49
+ ],
50
+ "grader": {
51
+ "checks": [
52
+ "answer_matches_expected"
53
+ ],
54
+ "endpoint": "/__grade__/expected_answer",
55
+ "kind": "server_side"
56
+ },
57
+ "layer": "L1",
58
+ "scene": {
59
+ "kind": "self_hosted_fixture",
60
+ "url": "/l1/core"
61
+ },
62
+ "subset_id": "l1.cdp_use",
63
+ "tags": [
64
+ "family.state",
65
+ "version.v0_4"
66
+ ],
67
+ "task_id": "sc_st_cookie_survives_reload__cdpu",
68
+ "task_version": 1,
69
+ "timeouts": {
70
+ "hard_kill_ms": 45000,
71
+ "task_ms": 30000
72
+ },
73
+ "title": "A cookie survives a reload (cdp_use)"
74
+ }
definitions/tasks/L1/cdp_use/sc_st_local_roundtrip__cdpu.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/st_local_roundtrip.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Writes a localStorage key and reads it back through a second evaluate call. The value is computed at write time, never present in the page.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "get_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "v-37",
15
+ "kind": "saved_equals",
16
+ "label": "value_roundtrips",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "localStorage.setItem('abb_k', 'v-' + (37 + 0)), 'set'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "expression": "localStorage.getItem('abb_k') || 'missing'",
35
+ "op": "evaluate",
36
+ "save_as": "answer"
37
+ }
38
+ ]
39
+ },
40
+ "features": [
41
+ "fw.cdp_use.op.new_page",
42
+ "fw.cdp_use.op.goto",
43
+ "fw.cdp_use.op.evaluate",
44
+ "cdp.runtime.evaluate"
45
+ ],
46
+ "grader": {
47
+ "checks": [
48
+ "answer_matches_expected"
49
+ ],
50
+ "endpoint": "/__grade__/expected_answer",
51
+ "kind": "server_side"
52
+ },
53
+ "layer": "L1",
54
+ "scene": {
55
+ "kind": "self_hosted_fixture",
56
+ "url": "/l1/core"
57
+ },
58
+ "subset_id": "l1.cdp_use",
59
+ "tags": [
60
+ "family.state",
61
+ "version.v0_4"
62
+ ],
63
+ "task_id": "sc_st_local_roundtrip__cdpu",
64
+ "task_version": 1,
65
+ "timeouts": {
66
+ "hard_kill_ms": 45000,
67
+ "task_ms": 30000
68
+ },
69
+ "title": "localStorage set/get round-trip in one page (cdp_use)"
70
+ }
definitions/tasks/L1/cdp_use/sc_st_local_shared_same_origin__cdpu.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/st_local_shared_same_origin.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Writes localStorage in the first page, creates a second page on the same origin, and reads the key there. Same-origin pages must observe one storage area.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "second_page_read_ok",
11
+ "step": 5
12
+ },
13
+ {
14
+ "expected": "shared-63",
15
+ "kind": "saved_equals",
16
+ "label": "storage_shared",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "localStorage.setItem('abb_shared', 'shared-' + (21 * 3)), 'set'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "op": "new_page"
35
+ },
36
+ {
37
+ "op": "goto",
38
+ "url": "{fixture_url}"
39
+ },
40
+ {
41
+ "expression": "localStorage.getItem('abb_shared') || 'missing'",
42
+ "op": "evaluate",
43
+ "save_as": "answer"
44
+ }
45
+ ]
46
+ },
47
+ "features": [
48
+ "fw.cdp_use.op.new_page",
49
+ "fw.cdp_use.op.goto",
50
+ "fw.cdp_use.op.evaluate",
51
+ "cdp.target.create_target"
52
+ ],
53
+ "grader": {
54
+ "checks": [
55
+ "answer_matches_expected"
56
+ ],
57
+ "endpoint": "/__grade__/expected_answer",
58
+ "kind": "server_side"
59
+ },
60
+ "layer": "L1",
61
+ "scene": {
62
+ "kind": "self_hosted_fixture",
63
+ "url": "/l1/core"
64
+ },
65
+ "subset_id": "l1.cdp_use",
66
+ "tags": [
67
+ "family.state",
68
+ "version.v0_4"
69
+ ],
70
+ "task_id": "sc_st_local_shared_same_origin__cdpu",
71
+ "task_version": 1,
72
+ "timeouts": {
73
+ "hard_kill_ms": 45000,
74
+ "task_ms": 30000
75
+ },
76
+ "title": "localStorage is shared across pages of one origin (cdp_use)"
77
+ }
definitions/tasks/L1/cdp_use/sc_st_local_survives_reload__cdpu.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/st_local_survives_reload.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Writes a localStorage key, reloads the page, and reads the key back. Exercises storage persistence across the driver's reload path.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "reload_ok",
11
+ "step": 3
12
+ },
13
+ {
14
+ "expected": "keep-52",
15
+ "kind": "saved_equals",
16
+ "label": "survives",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "localStorage.setItem('abb_keep', 'keep-' + (13 * 4)), 'set'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "op": "reload"
35
+ },
36
+ {
37
+ "expression": "localStorage.getItem('abb_keep') || 'missing'",
38
+ "op": "evaluate",
39
+ "save_as": "answer"
40
+ }
41
+ ]
42
+ },
43
+ "features": [
44
+ "fw.cdp_use.op.new_page",
45
+ "fw.cdp_use.op.goto",
46
+ "fw.cdp_use.op.evaluate",
47
+ "fw.cdp_use.op.reload",
48
+ "cdp.page.reload"
49
+ ],
50
+ "grader": {
51
+ "checks": [
52
+ "answer_matches_expected"
53
+ ],
54
+ "endpoint": "/__grade__/expected_answer",
55
+ "kind": "server_side"
56
+ },
57
+ "layer": "L1",
58
+ "scene": {
59
+ "kind": "self_hosted_fixture",
60
+ "url": "/l1/core"
61
+ },
62
+ "subset_id": "l1.cdp_use",
63
+ "tags": [
64
+ "family.state",
65
+ "version.v0_4"
66
+ ],
67
+ "task_id": "sc_st_local_survives_reload__cdpu",
68
+ "task_version": 1,
69
+ "timeouts": {
70
+ "hard_kill_ms": 45000,
71
+ "task_ms": 30000
72
+ },
73
+ "title": "localStorage survives a reload (cdp_use)"
74
+ }
definitions/tasks/L1/cdp_use/sc_st_session_isolated_new_page__cdpu.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_generated_from": "tasks/scenarios/st_session_isolated_new_page.scenario.json",
3
+ "artifact_profile": "l1_standard",
4
+ "chrome_gate": "required",
5
+ "description": "Writes sessionStorage in the first page, creates a fresh page on the same origin, and confirms the key is absent there - sessionStorage is per top-level browsing context.",
6
+ "driver": {
7
+ "checks": [
8
+ {
9
+ "kind": "step_ok",
10
+ "label": "second_page_ok",
11
+ "step": 5
12
+ },
13
+ {
14
+ "expected": "isolated",
15
+ "kind": "saved_equals",
16
+ "label": "session_isolated",
17
+ "name": "answer"
18
+ }
19
+ ],
20
+ "kind": "thin_cdp_use",
21
+ "steps": [
22
+ {
23
+ "op": "new_page"
24
+ },
25
+ {
26
+ "op": "goto",
27
+ "url": "{fixture_url}"
28
+ },
29
+ {
30
+ "expression": "sessionStorage.setItem('abb_iso', 'leak-' + 9), 'set'",
31
+ "op": "evaluate"
32
+ },
33
+ {
34
+ "op": "new_page"
35
+ },
36
+ {
37
+ "op": "goto",
38
+ "url": "{fixture_url}"
39
+ },
40
+ {
41
+ "expression": "sessionStorage.getItem('abb_iso') === null ? 'isolated' : 'leaked'",
42
+ "op": "evaluate",
43
+ "save_as": "answer"
44
+ }
45
+ ]
46
+ },
47
+ "features": [
48
+ "fw.cdp_use.op.new_page",
49
+ "fw.cdp_use.op.goto",
50
+ "fw.cdp_use.op.evaluate",
51
+ "cdp.target.create_target"
52
+ ],
53
+ "grader": {
54
+ "checks": [
55
+ "answer_matches_expected"
56
+ ],
57
+ "endpoint": "/__grade__/expected_answer",
58
+ "kind": "server_side"
59
+ },
60
+ "layer": "L1",
61
+ "scene": {
62
+ "kind": "self_hosted_fixture",
63
+ "url": "/l1/core"
64
+ },
65
+ "subset_id": "l1.cdp_use",
66
+ "tags": [
67
+ "family.state",
68
+ "version.v0_4"
69
+ ],
70
+ "task_id": "sc_st_session_isolated_new_page__cdpu",
71
+ "task_version": 1,
72
+ "timeouts": {
73
+ "hard_kill_ms": 45000,
74
+ "task_ms": 30000
75
+ },
76
+ "title": "sessionStorage does not leak into a new page (cdp_use)"
77
+ }