Publish original Headless Browser inputs from 91ca91ae26d6baf84fbc104431f13e577ca41abf (part 5)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- definitions/tasks/L1/playwright/v3_pw_eval_input_value.json +65 -0
- definitions/tasks/L1/playwright/v3_pw_int_route_abort.json +66 -0
- definitions/tasks/L1/playwright/v3_pw_int_route_fulfill.json +69 -0
- definitions/tasks/L1/playwright/v3_pw_nav_back_forward.json +103 -0
- definitions/tasks/L1/playwright/v3_pw_nav_goto_status.json +67 -0
- definitions/tasks/L1/playwright/v3_pw_nav_reload.json +76 -0
- definitions/tasks/L1/playwright/v3_pw_nav_title_url.json +70 -0
- definitions/tasks/L1/playwright/v3_pw_nav_wait_for_selector.json +66 -0
- definitions/tasks/L1/playwright/v3_pw_obs_ax_snapshot.json +65 -0
- definitions/tasks/L1/playwright/v3_pw_obs_console_dialog.json +82 -0
- definitions/tasks/L1/puppeteer/sc_agentloop_ax_id_stable_across_mutation__pp.json +86 -0
- definitions/tasks/L1/puppeteer/sc_agentloop_ax_role_name_ids__pp.json +74 -0
- definitions/tasks/L1/puppeteer/sc_app_add_single_item__pp.json +100 -0
- definitions/tasks/L1/puppeteer/sc_app_cart_persists_reload__pp.json +104 -0
- definitions/tasks/L1/puppeteer/sc_app_cart_total_two_items__pp.json +108 -0
- definitions/tasks/L1/puppeteer/sc_app_checkout_receipt__pp.json +104 -0
- definitions/tasks/L1/puppeteer/sc_app_filter_narrows__pp.json +102 -0
- definitions/tasks/L1/puppeteer/sc_app_filter_then_add__pp.json +109 -0
- definitions/tasks/L1/puppeteer/sc_app_full_flow_aggregate__pp.json +112 -0
- definitions/tasks/L1/puppeteer/sc_app_locked_without_login__pp.json +82 -0
- definitions/tasks/L1/puppeteer/sc_app_login_greets__pp.json +84 -0
- definitions/tasks/L1/puppeteer/sc_app_logout_locks__pp.json +92 -0
- definitions/tasks/L1/puppeteer/sc_app_qty_accumulates__pp.json +104 -0
- definitions/tasks/L1/puppeteer/sc_app_remove_item__pp.json +112 -0
- definitions/tasks/L1/puppeteer/sc_computed_style_breadth__pp.json +87 -0
- definitions/tasks/L1/puppeteer/sc_cs_eval_context_persists__pp.json +70 -0
- definitions/tasks/L1/puppeteer/sc_cs_fresh_page_no_stale_globals__pp.json +78 -0
- definitions/tasks/L1/puppeteer/sc_cs_ready_state_complete__pp.json +67 -0
- definitions/tasks/L1/puppeteer/sc_cs_second_page_independent_nav__pp.json +74 -0
- definitions/tasks/L1/puppeteer/sc_cs_session_survives_three_pages__pp.json +80 -0
- definitions/tasks/L1/puppeteer/sc_cs_two_pages_isolated__pp.json +80 -0
- definitions/tasks/L1/puppeteer/sc_cs_ua_surface__pp.json +71 -0
- definitions/tasks/L1/puppeteer/sc_cs_url_surface__pp.json +65 -0
- definitions/tasks/L1/puppeteer/sc_dl_download_checksum__pp.json +73 -0
- definitions/tasks/L1/puppeteer/sc_dlg_alert_message__pp.json +81 -0
- definitions/tasks/L1/puppeteer/sc_dlg_confirm_accept__pp.json +82 -0
- definitions/tasks/L1/puppeteer/sc_dlg_confirm_dismiss__pp.json +82 -0
- definitions/tasks/L1/puppeteer/sc_dlg_prompt_text__pp.json +83 -0
- definitions/tasks/L1/puppeteer/sc_dlg_sequence_two_dialogs__pp.json +99 -0
- definitions/tasks/L1/puppeteer/sc_dyn_counter_clicks__pp.json +79 -0
- definitions/tasks/L1/puppeteer/sc_dyn_paging_final__pp.json +84 -0
- definitions/tasks/L1/puppeteer/sc_form_checkbox_check__pp.json +70 -0
- definitions/tasks/L1/puppeteer/sc_form_checkbox_event__pp.json +71 -0
- definitions/tasks/L1/puppeteer/sc_form_fill_overwrites__pp.json +77 -0
- definitions/tasks/L1/puppeteer/sc_form_fill_readback__pp.json +72 -0
- definitions/tasks/L1/puppeteer/sc_form_focus_active_element__pp.json +73 -0
- definitions/tasks/L1/puppeteer/sc_form_label_click_toggles__pp.json +71 -0
- definitions/tasks/L1/puppeteer/sc_form_press_enter_handler__pp.json +72 -0
- definitions/tasks/L1/puppeteer/sc_form_radio_pick__pp.json +71 -0
- definitions/tasks/L1/puppeteer/sc_form_select_option__pp.json +72 -0
definitions/tasks/L1/playwright/v3_pw_eval_input_value.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright fills #textbox on the controls fixture and reads the value back via page.inputValue(). Passes when the read-back equals the exact filled string, proving the value-read path (Runtime.callFunctionOn on the element) reflects the fill.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"kind": "step_ok",
|
| 8 |
+
"label": "fill_ok",
|
| 9 |
+
"step": 2
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"expected": "probe-value-17",
|
| 13 |
+
"kind": "saved_equals",
|
| 14 |
+
"label": "input_value_matches",
|
| 15 |
+
"name": "readback"
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"kind": "framework_playwright",
|
| 19 |
+
"steps": [
|
| 20 |
+
{
|
| 21 |
+
"op": "new_page"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"op": "goto",
|
| 25 |
+
"url": "{fixture_url}"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"op": "fill",
|
| 29 |
+
"selector": "#textbox",
|
| 30 |
+
"value": "probe-value-17"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"op": "input_value",
|
| 34 |
+
"save_as": "readback",
|
| 35 |
+
"selector": "#textbox"
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
"features": [
|
| 40 |
+
"fw.playwright.page.fill",
|
| 41 |
+
"fw.playwright.page.input_value",
|
| 42 |
+
"cdp.runtime.call_function_on"
|
| 43 |
+
],
|
| 44 |
+
"grader": {
|
| 45 |
+
"checks": [],
|
| 46 |
+
"kind": "inline_assertions"
|
| 47 |
+
},
|
| 48 |
+
"layer": "L1",
|
| 49 |
+
"scene": {
|
| 50 |
+
"kind": "self_hosted_fixture",
|
| 51 |
+
"url": "/v0_3/probe/controls"
|
| 52 |
+
},
|
| 53 |
+
"subset_id": "l1.playwright",
|
| 54 |
+
"tags": [
|
| 55 |
+
"family.framework_evaluate",
|
| 56 |
+
"version.v0_3"
|
| 57 |
+
],
|
| 58 |
+
"task_id": "v3_pw_eval_input_value",
|
| 59 |
+
"task_version": 1,
|
| 60 |
+
"timeouts": {
|
| 61 |
+
"hard_kill_ms": 45000,
|
| 62 |
+
"task_ms": 30000
|
| 63 |
+
},
|
| 64 |
+
"title": "inputValue reads back a filled control"
|
| 65 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_int_route_abort.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright registers a route that aborts **/v0_3/api/blocked, then the page fetches that URL; the fetch Promise must reject and the evaluate resolves through the catch branch. Passes when the saved outcome is 'FETCH_FAILED', proving Fetch.failRequest interception works.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"kind": "step_ok",
|
| 8 |
+
"label": "route_registered",
|
| 9 |
+
"step": 2
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"expected": "FETCH_FAILED",
|
| 13 |
+
"kind": "saved_equals",
|
| 14 |
+
"label": "fetch_hit_catch_branch",
|
| 15 |
+
"name": "outcome"
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"kind": "framework_playwright",
|
| 19 |
+
"steps": [
|
| 20 |
+
{
|
| 21 |
+
"op": "new_page"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"op": "goto",
|
| 25 |
+
"url": "{fixture_url}"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"op": "route_abort",
|
| 29 |
+
"pattern": "**/v0_3/api/blocked"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"expression": "fetch('/v0_3/api/blocked').then(r=>'GOT:'+r.status).catch(e=>'FETCH_FAILED')",
|
| 33 |
+
"op": "evaluate",
|
| 34 |
+
"save_as": "outcome"
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
"features": [
|
| 39 |
+
"fw.playwright.page.route",
|
| 40 |
+
"fw.playwright.route.abort",
|
| 41 |
+
"cdp.fetch.enable",
|
| 42 |
+
"cdp.fetch.fail_request",
|
| 43 |
+
"cdp.fetch.request_paused"
|
| 44 |
+
],
|
| 45 |
+
"grader": {
|
| 46 |
+
"checks": [],
|
| 47 |
+
"kind": "inline_assertions"
|
| 48 |
+
},
|
| 49 |
+
"layer": "L1",
|
| 50 |
+
"scene": {
|
| 51 |
+
"kind": "self_hosted_fixture",
|
| 52 |
+
"url": "/l1/core"
|
| 53 |
+
},
|
| 54 |
+
"subset_id": "l1.playwright",
|
| 55 |
+
"tags": [
|
| 56 |
+
"family.framework_intercept",
|
| 57 |
+
"version.v0_3"
|
| 58 |
+
],
|
| 59 |
+
"task_id": "v3_pw_int_route_abort",
|
| 60 |
+
"task_version": 1,
|
| 61 |
+
"timeouts": {
|
| 62 |
+
"hard_kill_ms": 45000,
|
| 63 |
+
"task_ms": 30000
|
| 64 |
+
},
|
| 65 |
+
"title": "page.route aborts a fetch which must land in the catch branch"
|
| 66 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_int_route_fulfill.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright registers a route that fulfills **/v0_3/api/probe with a mock JSON token, then the page fetches that URL and returns the parsed token (evaluate awaits the returned Promise). Passes when the token equals the injected mock value, proving the Fetch.enable/fulfillRequest interception path works.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"kind": "step_ok",
|
| 8 |
+
"label": "route_registered",
|
| 9 |
+
"step": 2
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"expected": "abb-mock-91",
|
| 13 |
+
"kind": "saved_equals",
|
| 14 |
+
"label": "mock_token_read",
|
| 15 |
+
"name": "token"
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"kind": "framework_playwright",
|
| 19 |
+
"steps": [
|
| 20 |
+
{
|
| 21 |
+
"op": "new_page"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"op": "goto",
|
| 25 |
+
"url": "{fixture_url}"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"body": "{\"token\":\"abb-mock-91\"}",
|
| 29 |
+
"content_type": "application/json",
|
| 30 |
+
"op": "route_fulfill",
|
| 31 |
+
"pattern": "**/v0_3/api/probe",
|
| 32 |
+
"status": 200
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"expression": "fetch('/v0_3/api/probe').then(r=>r.json()).then(d=>d.token).catch(e=>'ERR')",
|
| 36 |
+
"op": "evaluate",
|
| 37 |
+
"save_as": "token"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
"features": [
|
| 42 |
+
"fw.playwright.page.route",
|
| 43 |
+
"fw.playwright.route.fulfill",
|
| 44 |
+
"cdp.fetch.enable",
|
| 45 |
+
"cdp.fetch.fulfill_request",
|
| 46 |
+
"cdp.fetch.request_paused"
|
| 47 |
+
],
|
| 48 |
+
"grader": {
|
| 49 |
+
"checks": [],
|
| 50 |
+
"kind": "inline_assertions"
|
| 51 |
+
},
|
| 52 |
+
"layer": "L1",
|
| 53 |
+
"scene": {
|
| 54 |
+
"kind": "self_hosted_fixture",
|
| 55 |
+
"url": "/l1/core"
|
| 56 |
+
},
|
| 57 |
+
"subset_id": "l1.playwright",
|
| 58 |
+
"tags": [
|
| 59 |
+
"family.framework_intercept",
|
| 60 |
+
"version.v0_3"
|
| 61 |
+
],
|
| 62 |
+
"task_id": "v3_pw_int_route_fulfill",
|
| 63 |
+
"task_version": 1,
|
| 64 |
+
"timeouts": {
|
| 65 |
+
"hard_kill_ms": 45000,
|
| 66 |
+
"task_ms": 30000
|
| 67 |
+
},
|
| 68 |
+
"title": "page.route fulfills a fetch with a mocked JSON body"
|
| 69 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_nav_back_forward.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright navigates core -> page2, then goes back (URL must contain /l1/core, restored DOM title must read 'CDP Core Fixture') and forward again (URL must contain /page2, title 'Page Two'), proving Page.navigateToHistoryEntry drives real history hops. The hops are graded by post-navigation URL + DOM rather than the goBack/goForward return value: against an externally launched Chrome (no --disable-back-forward-cache), bfcache restores emit no load event, so Playwright's lifecycle wait inside goBack/goForward times out even though the history navigation itself commits correctly; the hops carry a short 3s timeout and are marked optional for that reason.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"expected": "/l1/core",
|
| 8 |
+
"kind": "saved_contains",
|
| 9 |
+
"label": "back_lands_on_core",
|
| 10 |
+
"name": "url_after_back"
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"expected": "CDP Core Fixture",
|
| 14 |
+
"kind": "saved_equals",
|
| 15 |
+
"label": "back_page_dom_alive",
|
| 16 |
+
"name": "title_after_back"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"expected": "/page2",
|
| 20 |
+
"kind": "saved_contains",
|
| 21 |
+
"label": "forward_lands_on_page2",
|
| 22 |
+
"name": "url_after_forward"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"expected": "Page Two",
|
| 26 |
+
"kind": "saved_equals",
|
| 27 |
+
"label": "forward_page_dom_alive",
|
| 28 |
+
"name": "title_after_forward"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"kind": "framework_playwright",
|
| 32 |
+
"steps": [
|
| 33 |
+
{
|
| 34 |
+
"op": "new_page"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"op": "goto",
|
| 38 |
+
"url": "{fixture_url}"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"op": "goto",
|
| 42 |
+
"url": "{fixture_origin}/page2"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"op": "go_back",
|
| 46 |
+
"optional": true,
|
| 47 |
+
"save_as": "back_result",
|
| 48 |
+
"timeout_ms": 3000
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"op": "url",
|
| 52 |
+
"save_as": "url_after_back"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"op": "text_content",
|
| 56 |
+
"save_as": "title_after_back",
|
| 57 |
+
"selector": "#title"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"op": "go_forward",
|
| 61 |
+
"optional": true,
|
| 62 |
+
"save_as": "forward_result",
|
| 63 |
+
"timeout_ms": 3000
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"op": "url",
|
| 67 |
+
"save_as": "url_after_forward"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"op": "text_content",
|
| 71 |
+
"save_as": "title_after_forward",
|
| 72 |
+
"selector": "#title"
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
"features": [
|
| 77 |
+
"fw.playwright.page.go_back",
|
| 78 |
+
"fw.playwright.page.go_forward",
|
| 79 |
+
"cdp.page.navigate_to_history_entry",
|
| 80 |
+
"cdp.page.get_navigation_history"
|
| 81 |
+
],
|
| 82 |
+
"grader": {
|
| 83 |
+
"checks": [],
|
| 84 |
+
"kind": "inline_assertions"
|
| 85 |
+
},
|
| 86 |
+
"layer": "L1",
|
| 87 |
+
"scene": {
|
| 88 |
+
"kind": "self_hosted_fixture",
|
| 89 |
+
"url": "/l1/core"
|
| 90 |
+
},
|
| 91 |
+
"subset_id": "l1.playwright",
|
| 92 |
+
"tags": [
|
| 93 |
+
"family.framework_navigation",
|
| 94 |
+
"version.v0_3"
|
| 95 |
+
],
|
| 96 |
+
"task_id": "v3_pw_nav_back_forward",
|
| 97 |
+
"task_version": 1,
|
| 98 |
+
"timeouts": {
|
| 99 |
+
"hard_kill_ms": 45000,
|
| 100 |
+
"task_ms": 30000
|
| 101 |
+
},
|
| 102 |
+
"title": "history goBack/goForward across two fixture pages"
|
| 103 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_nav_goto_status.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright navigates a fresh page to the fixture and captures the navigation response status plus the resulting page URL. Passes when the status is 200 and the URL contains the fixture path, proving Page.navigate plus lifecycle settlement work end to end.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"kind": "step_ok",
|
| 8 |
+
"label": "goto_ok",
|
| 9 |
+
"step": 1
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"expected": "200",
|
| 13 |
+
"kind": "saved_equals",
|
| 14 |
+
"label": "status_200",
|
| 15 |
+
"name": "status"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"expected": "/l1/core",
|
| 19 |
+
"kind": "saved_contains",
|
| 20 |
+
"label": "url_on_fixture",
|
| 21 |
+
"name": "final_url"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"kind": "framework_playwright",
|
| 25 |
+
"steps": [
|
| 26 |
+
{
|
| 27 |
+
"op": "new_page"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "goto",
|
| 31 |
+
"save_as": "status",
|
| 32 |
+
"url": "{fixture_url}"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "url",
|
| 36 |
+
"save_as": "final_url"
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"features": [
|
| 41 |
+
"fw.playwright.page.goto",
|
| 42 |
+
"fw.playwright.page.url",
|
| 43 |
+
"cdp.page.navigate",
|
| 44 |
+
"cdp.page.lifecycle_event"
|
| 45 |
+
],
|
| 46 |
+
"grader": {
|
| 47 |
+
"checks": [],
|
| 48 |
+
"kind": "inline_assertions"
|
| 49 |
+
},
|
| 50 |
+
"layer": "L1",
|
| 51 |
+
"scene": {
|
| 52 |
+
"kind": "self_hosted_fixture",
|
| 53 |
+
"url": "/l1/core"
|
| 54 |
+
},
|
| 55 |
+
"subset_id": "l1.playwright",
|
| 56 |
+
"tags": [
|
| 57 |
+
"family.framework_navigation",
|
| 58 |
+
"version.v0_3"
|
| 59 |
+
],
|
| 60 |
+
"task_id": "v3_pw_nav_goto_status",
|
| 61 |
+
"task_version": 1,
|
| 62 |
+
"timeouts": {
|
| 63 |
+
"hard_kill_ms": 45000,
|
| 64 |
+
"task_ms": 30000
|
| 65 |
+
},
|
| 66 |
+
"title": "goto returns HTTP 200 and lands on the fixture URL"
|
| 67 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_nav_reload.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright navigates, plants a window global via evaluate, reloads the page, then reads the global back. Passes when the pre-reload write is observed and the post-reload read is 'undefined', proving Page.reload actually re-created the JS world rather than reusing the old context.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"expected": "seeded-31",
|
| 8 |
+
"kind": "saved_equals",
|
| 9 |
+
"label": "global_seeded",
|
| 10 |
+
"name": "seeded"
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"kind": "step_ok",
|
| 14 |
+
"label": "reload_ok",
|
| 15 |
+
"step": 3
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"expected": "undefined",
|
| 19 |
+
"kind": "saved_equals",
|
| 20 |
+
"label": "global_gone_after_reload",
|
| 21 |
+
"name": "after_reload"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"kind": "framework_playwright",
|
| 25 |
+
"steps": [
|
| 26 |
+
{
|
| 27 |
+
"op": "new_page"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "goto",
|
| 31 |
+
"url": "{fixture_url}"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"expression": "(window.__abbReloadProbe = 'seeded-31')",
|
| 35 |
+
"op": "evaluate",
|
| 36 |
+
"save_as": "seeded"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"op": "reload",
|
| 40 |
+
"save_as": "reload_status"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "String(window.__abbReloadProbe)",
|
| 44 |
+
"op": "evaluate",
|
| 45 |
+
"save_as": "after_reload"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"features": [
|
| 50 |
+
"fw.playwright.page.reload",
|
| 51 |
+
"fw.playwright.page.evaluate",
|
| 52 |
+
"cdp.page.reload",
|
| 53 |
+
"cdp.runtime.evaluate"
|
| 54 |
+
],
|
| 55 |
+
"grader": {
|
| 56 |
+
"checks": [],
|
| 57 |
+
"kind": "inline_assertions"
|
| 58 |
+
},
|
| 59 |
+
"layer": "L1",
|
| 60 |
+
"scene": {
|
| 61 |
+
"kind": "self_hosted_fixture",
|
| 62 |
+
"url": "/l1/core"
|
| 63 |
+
},
|
| 64 |
+
"subset_id": "l1.playwright",
|
| 65 |
+
"tags": [
|
| 66 |
+
"family.framework_navigation",
|
| 67 |
+
"version.v0_3"
|
| 68 |
+
],
|
| 69 |
+
"task_id": "v3_pw_nav_reload",
|
| 70 |
+
"task_version": 1,
|
| 71 |
+
"timeouts": {
|
| 72 |
+
"hard_kill_ms": 45000,
|
| 73 |
+
"task_ms": 30000
|
| 74 |
+
},
|
| 75 |
+
"title": "reload discards a window global set before the reload"
|
| 76 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_nav_title_url.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright navigates to the core fixture and reads back the document title and current URL through the framework API. Passes when the title equals the fixture's known title and the URL contains the fixture path.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"kind": "step_ok",
|
| 8 |
+
"label": "goto_ok",
|
| 9 |
+
"step": 1
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"expected": "CDP Core Fixture",
|
| 13 |
+
"kind": "saved_equals",
|
| 14 |
+
"label": "title_matches",
|
| 15 |
+
"name": "title"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"expected": "/l1/core",
|
| 19 |
+
"kind": "saved_contains",
|
| 20 |
+
"label": "url_matches",
|
| 21 |
+
"name": "url"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"kind": "framework_playwright",
|
| 25 |
+
"steps": [
|
| 26 |
+
{
|
| 27 |
+
"op": "new_page"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "goto",
|
| 31 |
+
"url": "{fixture_url}"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "title",
|
| 35 |
+
"save_as": "title"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"op": "url",
|
| 39 |
+
"save_as": "url"
|
| 40 |
+
}
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
"features": [
|
| 44 |
+
"fw.playwright.page.title",
|
| 45 |
+
"fw.playwright.page.url",
|
| 46 |
+
"cdp.page.get_frame_tree",
|
| 47 |
+
"cdp.runtime.evaluate"
|
| 48 |
+
],
|
| 49 |
+
"grader": {
|
| 50 |
+
"checks": [],
|
| 51 |
+
"kind": "inline_assertions"
|
| 52 |
+
},
|
| 53 |
+
"layer": "L1",
|
| 54 |
+
"scene": {
|
| 55 |
+
"kind": "self_hosted_fixture",
|
| 56 |
+
"url": "/l1/core"
|
| 57 |
+
},
|
| 58 |
+
"subset_id": "l1.playwright",
|
| 59 |
+
"tags": [
|
| 60 |
+
"family.framework_navigation",
|
| 61 |
+
"version.v0_3"
|
| 62 |
+
],
|
| 63 |
+
"task_id": "v3_pw_nav_title_url",
|
| 64 |
+
"task_version": 1,
|
| 65 |
+
"timeouts": {
|
| 66 |
+
"hard_kill_ms": 45000,
|
| 67 |
+
"task_ms": 30000
|
| 68 |
+
},
|
| 69 |
+
"title": "page.title() and page.url() after navigation"
|
| 70 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_nav_wait_for_selector.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright navigates to the controls fixture where a script appends #late-item 300ms after load, then waits for that selector and reads its text. Passes when the wait resolves and the text equals the computed marker 'late-28', proving the polling/injected-helper wait machinery works on this engine.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"kind": "step_ok",
|
| 8 |
+
"label": "wait_for_selector_ok",
|
| 9 |
+
"step": 2
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"expected": "late-28",
|
| 13 |
+
"kind": "saved_equals",
|
| 14 |
+
"label": "late_item_text",
|
| 15 |
+
"name": "late_text"
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"kind": "framework_playwright",
|
| 19 |
+
"steps": [
|
| 20 |
+
{
|
| 21 |
+
"op": "new_page"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"op": "goto",
|
| 25 |
+
"url": "{fixture_url}"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"op": "wait_for_selector",
|
| 29 |
+
"selector": "#late-item",
|
| 30 |
+
"timeout_ms": 5000
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"op": "text_content",
|
| 34 |
+
"save_as": "late_text",
|
| 35 |
+
"selector": "#late-item"
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
"features": [
|
| 40 |
+
"fw.playwright.page.wait_for_selector",
|
| 41 |
+
"fw.playwright.page.text_content",
|
| 42 |
+
"cdp.runtime.call_function_on",
|
| 43 |
+
"cdp.page.add_script_to_evaluate_on_new_document"
|
| 44 |
+
],
|
| 45 |
+
"grader": {
|
| 46 |
+
"checks": [],
|
| 47 |
+
"kind": "inline_assertions"
|
| 48 |
+
},
|
| 49 |
+
"layer": "L1",
|
| 50 |
+
"scene": {
|
| 51 |
+
"kind": "self_hosted_fixture",
|
| 52 |
+
"url": "/v0_3/probe/controls"
|
| 53 |
+
},
|
| 54 |
+
"subset_id": "l1.playwright",
|
| 55 |
+
"tags": [
|
| 56 |
+
"family.framework_navigation",
|
| 57 |
+
"version.v0_3"
|
| 58 |
+
],
|
| 59 |
+
"task_id": "v3_pw_nav_wait_for_selector",
|
| 60 |
+
"task_version": 1,
|
| 61 |
+
"timeouts": {
|
| 62 |
+
"hard_kill_ms": 45000,
|
| 63 |
+
"task_ms": 30000
|
| 64 |
+
},
|
| 65 |
+
"title": "waitForSelector on a node injected 300ms after load"
|
| 66 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_obs_ax_snapshot.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright captures an accessibility snapshot of the controls fixture (probe tries page.accessibility.snapshot first, falling back to locator.ariaSnapshot). Passes when the serialized snapshot contains button semantics (loose contains check), proving the AX tree surface is readable through the framework.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"kind": "step_ok",
|
| 8 |
+
"label": "ax_snapshot_ok",
|
| 9 |
+
"step": 2
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"kind": "saved_truthy",
|
| 13 |
+
"label": "snapshot_nonempty",
|
| 14 |
+
"name": "ax"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"expected": "button",
|
| 18 |
+
"kind": "saved_contains",
|
| 19 |
+
"label": "button_semantics_present",
|
| 20 |
+
"name": "ax"
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"kind": "framework_playwright",
|
| 24 |
+
"steps": [
|
| 25 |
+
{
|
| 26 |
+
"op": "new_page"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"op": "goto",
|
| 30 |
+
"url": "{fixture_url}"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"op": "ax_snapshot",
|
| 34 |
+
"save_as": "ax"
|
| 35 |
+
}
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
"features": [
|
| 39 |
+
"fw.playwright.page.accessibility.snapshot",
|
| 40 |
+
"fw.playwright.locator.aria_snapshot",
|
| 41 |
+
"cdp.accessibility.get_full_ax_tree",
|
| 42 |
+
"cdp.accessibility.query_ax_tree"
|
| 43 |
+
],
|
| 44 |
+
"grader": {
|
| 45 |
+
"checks": [],
|
| 46 |
+
"kind": "inline_assertions"
|
| 47 |
+
},
|
| 48 |
+
"layer": "L1",
|
| 49 |
+
"scene": {
|
| 50 |
+
"kind": "self_hosted_fixture",
|
| 51 |
+
"url": "/v0_3/probe/controls"
|
| 52 |
+
},
|
| 53 |
+
"subset_id": "l1.playwright",
|
| 54 |
+
"tags": [
|
| 55 |
+
"family.framework_observation",
|
| 56 |
+
"version.v0_3"
|
| 57 |
+
],
|
| 58 |
+
"task_id": "v3_pw_obs_ax_snapshot",
|
| 59 |
+
"task_version": 1,
|
| 60 |
+
"timeouts": {
|
| 61 |
+
"hard_kill_ms": 45000,
|
| 62 |
+
"task_ms": 30000
|
| 63 |
+
},
|
| 64 |
+
"title": "accessibility snapshot exposes button semantics"
|
| 65 |
+
}
|
definitions/tasks/L1/playwright/v3_pw_obs_console_dialog.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifact_profile": "l1_standard",
|
| 3 |
+
"description": "Real Playwright wires a dialog handler (accept), then evaluates an IIFE that logs a marker to the console and calls window.confirm. Passes when the confirm return value is true (accepted dialog writes back into page JS - the Moli A5 target), the captured console contains the marker, and the recorded dialogs include a confirm.",
|
| 4 |
+
"driver": {
|
| 5 |
+
"checks": [
|
| 6 |
+
{
|
| 7 |
+
"expected": "true",
|
| 8 |
+
"kind": "saved_equals",
|
| 9 |
+
"label": "confirm_returned_true",
|
| 10 |
+
"name": "confirm_result"
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"expected": "abb-mark-77",
|
| 14 |
+
"kind": "saved_contains",
|
| 15 |
+
"label": "console_marker_captured",
|
| 16 |
+
"name": "logs"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"expected": "confirm",
|
| 20 |
+
"kind": "saved_contains",
|
| 21 |
+
"label": "confirm_dialog_recorded",
|
| 22 |
+
"name": "dialogs"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"kind": "framework_playwright",
|
| 26 |
+
"steps": [
|
| 27 |
+
{
|
| 28 |
+
"op": "new_page"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"op": "goto",
|
| 32 |
+
"url": "{fixture_url}"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"action": "accept",
|
| 36 |
+
"op": "on_dialog"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "(()=>{console.log('abb-mark-77'); return window.confirm('go?');})()",
|
| 40 |
+
"op": "evaluate",
|
| 41 |
+
"save_as": "confirm_result"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"op": "get_console",
|
| 45 |
+
"save_as": "logs"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"op": "get_dialogs",
|
| 49 |
+
"save_as": "dialogs"
|
| 50 |
+
}
|
| 51 |
+
]
|
| 52 |
+
},
|
| 53 |
+
"features": [
|
| 54 |
+
"fw.playwright.page.on_console",
|
| 55 |
+
"fw.playwright.page.on_dialog",
|
| 56 |
+
"fw.playwright.dialog.accept",
|
| 57 |
+
"cdp.runtime.console_api_called",
|
| 58 |
+
"cdp.page.javascript_dialog_opening",
|
| 59 |
+
"cdp.page.handle_javascript_dialog"
|
| 60 |
+
],
|
| 61 |
+
"grader": {
|
| 62 |
+
"checks": [],
|
| 63 |
+
"kind": "inline_assertions"
|
| 64 |
+
},
|
| 65 |
+
"layer": "L1",
|
| 66 |
+
"scene": {
|
| 67 |
+
"kind": "self_hosted_fixture",
|
| 68 |
+
"url": "/l1/core"
|
| 69 |
+
},
|
| 70 |
+
"subset_id": "l1.playwright",
|
| 71 |
+
"tags": [
|
| 72 |
+
"family.framework_observation",
|
| 73 |
+
"version.v0_3"
|
| 74 |
+
],
|
| 75 |
+
"task_id": "v3_pw_obs_console_dialog",
|
| 76 |
+
"task_version": 1,
|
| 77 |
+
"timeouts": {
|
| 78 |
+
"hard_kill_ms": 45000,
|
| 79 |
+
"task_ms": 30000
|
| 80 |
+
},
|
| 81 |
+
"title": "console.log capture + confirm() dialog accept with return value"
|
| 82 |
+
}
|
definitions/tasks/L1/puppeteer/sc_agentloop_ax_id_stable_across_mutation__pp.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/agentloop_ax_id_stable_across_mutation.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "best_effort",
|
| 5 |
+
"description": "Reads a deterministic AX target, inserts an unrelated sibling, reads the target again, and requires the raw backendDOMNodeId or MCP uid mapping to remain stable.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "second_ax_identity_read",
|
| 11 |
+
"step": 5
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "stable|role=button|name=ax-stable-63|",
|
| 15 |
+
"kind": "saved_contains",
|
| 16 |
+
"label": "identity_stable",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"expression": "document.getElementById('ax-stable').getAttribute('aria-label') === 'ax-stable-63'",
|
| 31 |
+
"op": "wait_for_function"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "ax-stable-63",
|
| 35 |
+
"op": "ax_node_identity",
|
| 36 |
+
"role": "button",
|
| 37 |
+
"save_as": "before"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"expression": "(() => { const target = document.getElementById('ax-stable'); const inserted = document.createElement('span'); inserted.id = 'ax-unrelated-insert'; inserted.textContent = 'unrelated mutation'; target.before(inserted); return 'mutated'; })()",
|
| 41 |
+
"op": "evaluate"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"compare_to": "before",
|
| 45 |
+
"name": "ax-stable-63",
|
| 46 |
+
"op": "ax_node_identity",
|
| 47 |
+
"role": "button",
|
| 48 |
+
"save_as": "answer"
|
| 49 |
+
}
|
| 50 |
+
]
|
| 51 |
+
},
|
| 52 |
+
"features": [
|
| 53 |
+
"fw.puppeteer.op.new_page",
|
| 54 |
+
"fw.puppeteer.op.goto",
|
| 55 |
+
"fw.puppeteer.op.wait_for_function",
|
| 56 |
+
"fw.puppeteer.op.ax_node_identity",
|
| 57 |
+
"fw.puppeteer.op.evaluate",
|
| 58 |
+
"cdp.accessibility.get_full_ax_tree"
|
| 59 |
+
],
|
| 60 |
+
"grader": {
|
| 61 |
+
"checks": [
|
| 62 |
+
"answer_matches_expected"
|
| 63 |
+
],
|
| 64 |
+
"endpoint": "/__grade__/expected_answer",
|
| 65 |
+
"kind": "server_side"
|
| 66 |
+
},
|
| 67 |
+
"layer": "L1",
|
| 68 |
+
"scene": {
|
| 69 |
+
"kind": "self_hosted_fixture",
|
| 70 |
+
"url": "/v0_4/obs"
|
| 71 |
+
},
|
| 72 |
+
"subset_id": "l1.puppeteer",
|
| 73 |
+
"tags": [
|
| 74 |
+
"family.observation",
|
| 75 |
+
"version.v0_4",
|
| 76 |
+
"purpose.issue_106",
|
| 77 |
+
"purpose.diagnostic"
|
| 78 |
+
],
|
| 79 |
+
"task_id": "sc_agentloop_ax_id_stable_across_mutation__pp",
|
| 80 |
+
"task_version": 1,
|
| 81 |
+
"timeouts": {
|
| 82 |
+
"hard_kill_ms": 45000,
|
| 83 |
+
"task_ms": 30000
|
| 84 |
+
},
|
| 85 |
+
"title": "An unchanged AX target keeps its identity across an unrelated DOM mutation (puppeteer)"
|
| 86 |
+
}
|
definitions/tasks/L1/puppeteer/sc_agentloop_ax_role_name_ids__pp.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/agentloop_ax_role_name_ids.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "best_effort",
|
| 5 |
+
"description": "Fetches the full accessibility tree through each driver's own CDP route, finds a deterministic button, and requires its role, computed accessible name, and backendDOMNodeId to survive the adapter boundary.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "ax_identity_read",
|
| 11 |
+
"step": 3
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "role=button|name=ax-stable-63|backendDOMNodeId=",
|
| 15 |
+
"kind": "saved_contains",
|
| 16 |
+
"label": "role_name_backend_id_complete",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"expression": "document.getElementById('ax-stable').getAttribute('aria-label') === 'ax-stable-63'",
|
| 31 |
+
"op": "wait_for_function"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "ax-stable-63",
|
| 35 |
+
"op": "ax_node_identity",
|
| 36 |
+
"role": "button",
|
| 37 |
+
"save_as": "answer"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
"features": [
|
| 42 |
+
"fw.puppeteer.op.new_page",
|
| 43 |
+
"fw.puppeteer.op.goto",
|
| 44 |
+
"fw.puppeteer.op.wait_for_function",
|
| 45 |
+
"fw.puppeteer.op.ax_node_identity",
|
| 46 |
+
"cdp.accessibility.get_full_ax_tree"
|
| 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.puppeteer",
|
| 61 |
+
"tags": [
|
| 62 |
+
"family.observation",
|
| 63 |
+
"version.v0_4",
|
| 64 |
+
"purpose.issue_106",
|
| 65 |
+
"purpose.diagnostic"
|
| 66 |
+
],
|
| 67 |
+
"task_id": "sc_agentloop_ax_role_name_ids__pp",
|
| 68 |
+
"task_version": 1,
|
| 69 |
+
"timeouts": {
|
| 70 |
+
"hard_kill_ms": 45000,
|
| 71 |
+
"task_ms": 30000
|
| 72 |
+
},
|
| 73 |
+
"title": "An agent-facing AX query preserves role, name, and backend DOM identity (puppeteer)"
|
| 74 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_add_single_item__pp.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_add_single_item.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, adds one item, and answers with the server-computed cart total.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "item_added",
|
| 11 |
+
"step": 6
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "total-3",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "server_total",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "!!document.getElementById('add-widget-a')",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "click",
|
| 48 |
+
"selector": "#add-widget-a"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "!!document.getElementById('cart-widget-a')",
|
| 52 |
+
"op": "wait_for_function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"expression": "document.getElementById('cart-total').textContent === 'total-3'",
|
| 56 |
+
"op": "wait_for_function"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"op": "text_content",
|
| 60 |
+
"save_as": "answer",
|
| 61 |
+
"selector": "#cart-total"
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
},
|
| 65 |
+
"features": [
|
| 66 |
+
"fw.puppeteer.op.new_page",
|
| 67 |
+
"fw.puppeteer.op.goto",
|
| 68 |
+
"fw.puppeteer.op.fill",
|
| 69 |
+
"fw.puppeteer.op.click",
|
| 70 |
+
"fw.puppeteer.op.wait_for_function",
|
| 71 |
+
"fw.puppeteer.op.text_content",
|
| 72 |
+
"cdp.runtime.evaluate",
|
| 73 |
+
"cdp.input.dispatch_mouse_event",
|
| 74 |
+
"cdp.network.request_will_be_sent"
|
| 75 |
+
],
|
| 76 |
+
"grader": {
|
| 77 |
+
"checks": [
|
| 78 |
+
"answer_matches_expected"
|
| 79 |
+
],
|
| 80 |
+
"endpoint": "/__grade__/expected_answer",
|
| 81 |
+
"kind": "server_side"
|
| 82 |
+
},
|
| 83 |
+
"layer": "L1",
|
| 84 |
+
"scene": {
|
| 85 |
+
"kind": "self_hosted_fixture",
|
| 86 |
+
"url": "/v0_4/app"
|
| 87 |
+
},
|
| 88 |
+
"subset_id": "l1.puppeteer",
|
| 89 |
+
"tags": [
|
| 90 |
+
"family.multi_step_flow",
|
| 91 |
+
"version.v0_4"
|
| 92 |
+
],
|
| 93 |
+
"task_id": "sc_app_add_single_item__pp",
|
| 94 |
+
"task_version": 1,
|
| 95 |
+
"timeouts": {
|
| 96 |
+
"hard_kill_ms": 45000,
|
| 97 |
+
"task_ms": 30000
|
| 98 |
+
},
|
| 99 |
+
"title": "Adding one item is reflected in the server-side cart total (puppeteer)"
|
| 100 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_cart_persists_reload__pp.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_cart_persists_reload.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, adds an item, reloads the document, and answers with the total restored from server state.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "restored",
|
| 11 |
+
"step": 8
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "total-7",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "total_after_reload",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "!!document.getElementById('add-widget-c')",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "click",
|
| 48 |
+
"selector": "#add-widget-c"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "!!document.getElementById('cart-widget-c')",
|
| 52 |
+
"op": "wait_for_function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"op": "reload"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"expression": "document.getElementById('cart-total').textContent === 'total-7'",
|
| 59 |
+
"op": "wait_for_function"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"op": "text_content",
|
| 63 |
+
"save_as": "answer",
|
| 64 |
+
"selector": "#cart-total"
|
| 65 |
+
}
|
| 66 |
+
]
|
| 67 |
+
},
|
| 68 |
+
"features": [
|
| 69 |
+
"fw.puppeteer.op.new_page",
|
| 70 |
+
"fw.puppeteer.op.goto",
|
| 71 |
+
"fw.puppeteer.op.fill",
|
| 72 |
+
"fw.puppeteer.op.click",
|
| 73 |
+
"fw.puppeteer.op.wait_for_function",
|
| 74 |
+
"fw.puppeteer.op.reload",
|
| 75 |
+
"fw.puppeteer.op.text_content",
|
| 76 |
+
"cdp.runtime.evaluate",
|
| 77 |
+
"cdp.input.dispatch_mouse_event",
|
| 78 |
+
"cdp.network.request_will_be_sent"
|
| 79 |
+
],
|
| 80 |
+
"grader": {
|
| 81 |
+
"checks": [
|
| 82 |
+
"answer_matches_expected"
|
| 83 |
+
],
|
| 84 |
+
"endpoint": "/__grade__/expected_answer",
|
| 85 |
+
"kind": "server_side"
|
| 86 |
+
},
|
| 87 |
+
"layer": "L1",
|
| 88 |
+
"scene": {
|
| 89 |
+
"kind": "self_hosted_fixture",
|
| 90 |
+
"url": "/v0_4/app"
|
| 91 |
+
},
|
| 92 |
+
"subset_id": "l1.puppeteer",
|
| 93 |
+
"tags": [
|
| 94 |
+
"family.multi_step_flow",
|
| 95 |
+
"version.v0_4"
|
| 96 |
+
],
|
| 97 |
+
"task_id": "sc_app_cart_persists_reload__pp",
|
| 98 |
+
"task_version": 1,
|
| 99 |
+
"timeouts": {
|
| 100 |
+
"hard_kill_ms": 45000,
|
| 101 |
+
"task_ms": 30000
|
| 102 |
+
},
|
| 103 |
+
"title": "The cart survives a page reload via the session cookie (puppeteer)"
|
| 104 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_cart_total_two_items__pp.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_cart_total_two_items.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, adds two items with different prices, and answers with the aggregated total.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "both_added",
|
| 11 |
+
"step": 8
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "total-14",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "aggregate_total",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "!!document.getElementById('add-widget-a')",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "click",
|
| 48 |
+
"selector": "#add-widget-a"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "!!document.getElementById('cart-widget-a')",
|
| 52 |
+
"op": "wait_for_function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"op": "click",
|
| 56 |
+
"selector": "#add-gizmo-x"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"expression": "!!document.getElementById('cart-gizmo-x')",
|
| 60 |
+
"op": "wait_for_function"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"expression": "document.getElementById('cart-total').textContent === 'total-14'",
|
| 64 |
+
"op": "wait_for_function"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"op": "text_content",
|
| 68 |
+
"save_as": "answer",
|
| 69 |
+
"selector": "#cart-total"
|
| 70 |
+
}
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
"features": [
|
| 74 |
+
"fw.puppeteer.op.new_page",
|
| 75 |
+
"fw.puppeteer.op.goto",
|
| 76 |
+
"fw.puppeteer.op.fill",
|
| 77 |
+
"fw.puppeteer.op.click",
|
| 78 |
+
"fw.puppeteer.op.wait_for_function",
|
| 79 |
+
"fw.puppeteer.op.text_content",
|
| 80 |
+
"cdp.runtime.evaluate",
|
| 81 |
+
"cdp.input.dispatch_mouse_event",
|
| 82 |
+
"cdp.network.request_will_be_sent"
|
| 83 |
+
],
|
| 84 |
+
"grader": {
|
| 85 |
+
"checks": [
|
| 86 |
+
"answer_matches_expected"
|
| 87 |
+
],
|
| 88 |
+
"endpoint": "/__grade__/expected_answer",
|
| 89 |
+
"kind": "server_side"
|
| 90 |
+
},
|
| 91 |
+
"layer": "L1",
|
| 92 |
+
"scene": {
|
| 93 |
+
"kind": "self_hosted_fixture",
|
| 94 |
+
"url": "/v0_4/app"
|
| 95 |
+
},
|
| 96 |
+
"subset_id": "l1.puppeteer",
|
| 97 |
+
"tags": [
|
| 98 |
+
"family.multi_step_flow",
|
| 99 |
+
"version.v0_4"
|
| 100 |
+
],
|
| 101 |
+
"task_id": "sc_app_cart_total_two_items__pp",
|
| 102 |
+
"task_version": 1,
|
| 103 |
+
"timeouts": {
|
| 104 |
+
"hard_kill_ms": 45000,
|
| 105 |
+
"task_ms": 30000
|
| 106 |
+
},
|
| 107 |
+
"title": "Two different items sum to the server-computed total (puppeteer)"
|
| 108 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_checkout_receipt__pp.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_checkout_receipt.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, adds one item, checks out, and answers with the order id the server derived from the cart.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "receipt_shown",
|
| 11 |
+
"step": 8
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "ord-13-1",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "order_id",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "!!document.getElementById('add-gizmo-y')",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "click",
|
| 48 |
+
"selector": "#add-gizmo-y"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "!!document.getElementById('cart-gizmo-y')",
|
| 52 |
+
"op": "wait_for_function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"op": "click",
|
| 56 |
+
"selector": "#checkout-btn"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"expression": "document.getElementById('receipt').textContent.indexOf('ord-') !== -1",
|
| 60 |
+
"op": "wait_for_function"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"op": "text_content",
|
| 64 |
+
"save_as": "answer",
|
| 65 |
+
"selector": "#receipt"
|
| 66 |
+
}
|
| 67 |
+
]
|
| 68 |
+
},
|
| 69 |
+
"features": [
|
| 70 |
+
"fw.puppeteer.op.new_page",
|
| 71 |
+
"fw.puppeteer.op.goto",
|
| 72 |
+
"fw.puppeteer.op.fill",
|
| 73 |
+
"fw.puppeteer.op.click",
|
| 74 |
+
"fw.puppeteer.op.wait_for_function",
|
| 75 |
+
"fw.puppeteer.op.text_content",
|
| 76 |
+
"cdp.runtime.evaluate",
|
| 77 |
+
"cdp.input.dispatch_mouse_event",
|
| 78 |
+
"cdp.network.request_will_be_sent"
|
| 79 |
+
],
|
| 80 |
+
"grader": {
|
| 81 |
+
"checks": [
|
| 82 |
+
"answer_matches_expected"
|
| 83 |
+
],
|
| 84 |
+
"endpoint": "/__grade__/expected_answer",
|
| 85 |
+
"kind": "server_side"
|
| 86 |
+
},
|
| 87 |
+
"layer": "L1",
|
| 88 |
+
"scene": {
|
| 89 |
+
"kind": "self_hosted_fixture",
|
| 90 |
+
"url": "/v0_4/app"
|
| 91 |
+
},
|
| 92 |
+
"subset_id": "l1.puppeteer",
|
| 93 |
+
"tags": [
|
| 94 |
+
"family.multi_step_flow",
|
| 95 |
+
"version.v0_4"
|
| 96 |
+
],
|
| 97 |
+
"task_id": "sc_app_checkout_receipt__pp",
|
| 98 |
+
"task_version": 1,
|
| 99 |
+
"timeouts": {
|
| 100 |
+
"hard_kill_ms": 45000,
|
| 101 |
+
"task_ms": 30000
|
| 102 |
+
},
|
| 103 |
+
"title": "Checkout returns a server-computed order receipt (puppeteer)"
|
| 104 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_filter_narrows__pp.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_filter_narrows.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, types a filter prefix, and answers with the live match counter.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "filter_applied",
|
| 11 |
+
"step": 8
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "wid:3",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "narrowed",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "document.querySelectorAll('#items li').length === 5",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "fill",
|
| 48 |
+
"selector": "#filter-in",
|
| 49 |
+
"value": "wid"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"expression": "document.getElementById('filter-in').dispatchEvent(new Event('input', {bubbles: true})); 'fired'",
|
| 53 |
+
"op": "evaluate"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"expression": "document.getElementById('filter-count').textContent === 'wid:3'",
|
| 57 |
+
"op": "wait_for_function"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"op": "text_content",
|
| 61 |
+
"save_as": "answer",
|
| 62 |
+
"selector": "#filter-count"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
},
|
| 66 |
+
"features": [
|
| 67 |
+
"fw.puppeteer.op.new_page",
|
| 68 |
+
"fw.puppeteer.op.goto",
|
| 69 |
+
"fw.puppeteer.op.fill",
|
| 70 |
+
"fw.puppeteer.op.click",
|
| 71 |
+
"fw.puppeteer.op.wait_for_function",
|
| 72 |
+
"fw.puppeteer.op.evaluate",
|
| 73 |
+
"fw.puppeteer.op.text_content",
|
| 74 |
+
"cdp.runtime.evaluate",
|
| 75 |
+
"cdp.input.dispatch_mouse_event",
|
| 76 |
+
"cdp.network.request_will_be_sent"
|
| 77 |
+
],
|
| 78 |
+
"grader": {
|
| 79 |
+
"checks": [
|
| 80 |
+
"answer_matches_expected"
|
| 81 |
+
],
|
| 82 |
+
"endpoint": "/__grade__/expected_answer",
|
| 83 |
+
"kind": "server_side"
|
| 84 |
+
},
|
| 85 |
+
"layer": "L1",
|
| 86 |
+
"scene": {
|
| 87 |
+
"kind": "self_hosted_fixture",
|
| 88 |
+
"url": "/v0_4/app"
|
| 89 |
+
},
|
| 90 |
+
"subset_id": "l1.puppeteer",
|
| 91 |
+
"tags": [
|
| 92 |
+
"family.multi_step_flow",
|
| 93 |
+
"version.v0_4"
|
| 94 |
+
],
|
| 95 |
+
"task_id": "sc_app_filter_narrows__pp",
|
| 96 |
+
"task_version": 1,
|
| 97 |
+
"timeouts": {
|
| 98 |
+
"hard_kill_ms": 45000,
|
| 99 |
+
"task_ms": 30000
|
| 100 |
+
},
|
| 101 |
+
"title": "Typing a filter narrows the item list to matching entries (puppeteer)"
|
| 102 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_filter_then_add__pp.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_filter_then_add.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, filters to the gizmo group, adds the first match, and answers with its cart line.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "added_from_filter",
|
| 11 |
+
"step": 9
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "gizmo-x:1",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "cart_line",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "document.querySelectorAll('#items li').length === 5",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "fill",
|
| 48 |
+
"selector": "#filter-in",
|
| 49 |
+
"value": "giz"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"expression": "document.getElementById('filter-in').dispatchEvent(new Event('input', {bubbles: true})); 'fired'",
|
| 53 |
+
"op": "evaluate"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"expression": "document.getElementById('filter-count').textContent === 'giz:2'",
|
| 57 |
+
"op": "wait_for_function"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"op": "click",
|
| 61 |
+
"selector": "#add-gizmo-x"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"expression": "!!document.getElementById('cart-gizmo-x')",
|
| 65 |
+
"op": "wait_for_function"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"expression": "document.getElementById('cart-gizmo-x').textContent.trim().replace(/ rm$/, '')",
|
| 69 |
+
"op": "evaluate",
|
| 70 |
+
"save_as": "answer"
|
| 71 |
+
}
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
"features": [
|
| 75 |
+
"fw.puppeteer.op.new_page",
|
| 76 |
+
"fw.puppeteer.op.goto",
|
| 77 |
+
"fw.puppeteer.op.fill",
|
| 78 |
+
"fw.puppeteer.op.click",
|
| 79 |
+
"fw.puppeteer.op.wait_for_function",
|
| 80 |
+
"fw.puppeteer.op.evaluate",
|
| 81 |
+
"cdp.runtime.evaluate",
|
| 82 |
+
"cdp.input.dispatch_mouse_event",
|
| 83 |
+
"cdp.network.request_will_be_sent"
|
| 84 |
+
],
|
| 85 |
+
"grader": {
|
| 86 |
+
"checks": [
|
| 87 |
+
"answer_matches_expected"
|
| 88 |
+
],
|
| 89 |
+
"endpoint": "/__grade__/expected_answer",
|
| 90 |
+
"kind": "server_side"
|
| 91 |
+
},
|
| 92 |
+
"layer": "L1",
|
| 93 |
+
"scene": {
|
| 94 |
+
"kind": "self_hosted_fixture",
|
| 95 |
+
"url": "/v0_4/app"
|
| 96 |
+
},
|
| 97 |
+
"subset_id": "l1.puppeteer",
|
| 98 |
+
"tags": [
|
| 99 |
+
"family.multi_step_flow",
|
| 100 |
+
"version.v0_4"
|
| 101 |
+
],
|
| 102 |
+
"task_id": "sc_app_filter_then_add__pp",
|
| 103 |
+
"task_version": 1,
|
| 104 |
+
"timeouts": {
|
| 105 |
+
"hard_kill_ms": 45000,
|
| 106 |
+
"task_ms": 30000
|
| 107 |
+
},
|
| 108 |
+
"title": "An item added from a filtered view lands in the cart (puppeteer)"
|
| 109 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_full_flow_aggregate__pp.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_full_flow_aggregate.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Runs the entire flow and answers with greeting plus receipt, every part server-computed.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "flow_complete",
|
| 11 |
+
"step": 10
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "hi-eve-7|ord-14-2",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "aggregate",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "!!document.getElementById('add-widget-a')",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "click",
|
| 48 |
+
"selector": "#add-widget-a"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "!!document.getElementById('cart-widget-a')",
|
| 52 |
+
"op": "wait_for_function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"op": "click",
|
| 56 |
+
"selector": "#add-gizmo-x"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"expression": "!!document.getElementById('cart-gizmo-x')",
|
| 60 |
+
"op": "wait_for_function"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"op": "click",
|
| 64 |
+
"selector": "#checkout-btn"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"expression": "document.getElementById('receipt').textContent.indexOf('ord-') !== -1",
|
| 68 |
+
"op": "wait_for_function"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"expression": "document.getElementById('greet').textContent + '|' + document.getElementById('receipt').textContent",
|
| 72 |
+
"op": "evaluate",
|
| 73 |
+
"save_as": "answer"
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
},
|
| 77 |
+
"features": [
|
| 78 |
+
"fw.puppeteer.op.new_page",
|
| 79 |
+
"fw.puppeteer.op.goto",
|
| 80 |
+
"fw.puppeteer.op.fill",
|
| 81 |
+
"fw.puppeteer.op.click",
|
| 82 |
+
"fw.puppeteer.op.wait_for_function",
|
| 83 |
+
"fw.puppeteer.op.evaluate",
|
| 84 |
+
"cdp.runtime.evaluate",
|
| 85 |
+
"cdp.input.dispatch_mouse_event",
|
| 86 |
+
"cdp.network.request_will_be_sent"
|
| 87 |
+
],
|
| 88 |
+
"grader": {
|
| 89 |
+
"checks": [
|
| 90 |
+
"answer_matches_expected"
|
| 91 |
+
],
|
| 92 |
+
"endpoint": "/__grade__/expected_answer",
|
| 93 |
+
"kind": "server_side"
|
| 94 |
+
},
|
| 95 |
+
"layer": "L1",
|
| 96 |
+
"scene": {
|
| 97 |
+
"kind": "self_hosted_fixture",
|
| 98 |
+
"url": "/v0_4/app"
|
| 99 |
+
},
|
| 100 |
+
"subset_id": "l1.puppeteer",
|
| 101 |
+
"tags": [
|
| 102 |
+
"family.multi_step_flow",
|
| 103 |
+
"version.v0_4"
|
| 104 |
+
],
|
| 105 |
+
"task_id": "sc_app_full_flow_aggregate__pp",
|
| 106 |
+
"task_version": 1,
|
| 107 |
+
"timeouts": {
|
| 108 |
+
"hard_kill_ms": 45000,
|
| 109 |
+
"task_ms": 30000
|
| 110 |
+
},
|
| 111 |
+
"title": "The full login-add-add-checkout flow aggregates end to end (puppeteer)"
|
| 112 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_locked_without_login__pp.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_locked_without_login.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Clears any leftover session cookie, reloads, and confirms the server refuses the item list.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "locked_state",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "locked",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "server_refused",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"expression": "document.cookie = 'abb_app_sid=; Max-Age=0; path=/'; 'cleared'",
|
| 31 |
+
"op": "evaluate"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "reload"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"expression": "document.getElementById('filter-count').textContent === 'locked'",
|
| 38 |
+
"op": "wait_for_function"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"op": "text_content",
|
| 42 |
+
"save_as": "answer",
|
| 43 |
+
"selector": "#filter-count"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"features": [
|
| 48 |
+
"fw.puppeteer.op.new_page",
|
| 49 |
+
"fw.puppeteer.op.goto",
|
| 50 |
+
"fw.puppeteer.op.evaluate",
|
| 51 |
+
"fw.puppeteer.op.reload",
|
| 52 |
+
"fw.puppeteer.op.wait_for_function",
|
| 53 |
+
"fw.puppeteer.op.text_content",
|
| 54 |
+
"cdp.runtime.evaluate",
|
| 55 |
+
"cdp.input.dispatch_mouse_event",
|
| 56 |
+
"cdp.network.request_will_be_sent"
|
| 57 |
+
],
|
| 58 |
+
"grader": {
|
| 59 |
+
"checks": [
|
| 60 |
+
"answer_matches_expected"
|
| 61 |
+
],
|
| 62 |
+
"endpoint": "/__grade__/expected_answer",
|
| 63 |
+
"kind": "server_side"
|
| 64 |
+
},
|
| 65 |
+
"layer": "L1",
|
| 66 |
+
"scene": {
|
| 67 |
+
"kind": "self_hosted_fixture",
|
| 68 |
+
"url": "/v0_4/app"
|
| 69 |
+
},
|
| 70 |
+
"subset_id": "l1.puppeteer",
|
| 71 |
+
"tags": [
|
| 72 |
+
"family.multi_step_flow",
|
| 73 |
+
"version.v0_4"
|
| 74 |
+
],
|
| 75 |
+
"task_id": "sc_app_locked_without_login__pp",
|
| 76 |
+
"task_version": 1,
|
| 77 |
+
"timeouts": {
|
| 78 |
+
"hard_kill_ms": 45000,
|
| 79 |
+
"task_ms": 30000
|
| 80 |
+
},
|
| 81 |
+
"title": "The item list is locked without a session (puppeteer)"
|
| 82 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_login_greets__pp.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_login_greets.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Fills the user field, logs in, and answers with the greeting the server echoed back.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "login_done",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "hi-eve-7",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "greeting",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"op": "text_content",
|
| 44 |
+
"save_as": "answer",
|
| 45 |
+
"selector": "#greet"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"features": [
|
| 50 |
+
"fw.puppeteer.op.new_page",
|
| 51 |
+
"fw.puppeteer.op.goto",
|
| 52 |
+
"fw.puppeteer.op.fill",
|
| 53 |
+
"fw.puppeteer.op.click",
|
| 54 |
+
"fw.puppeteer.op.wait_for_function",
|
| 55 |
+
"fw.puppeteer.op.text_content",
|
| 56 |
+
"cdp.runtime.evaluate",
|
| 57 |
+
"cdp.input.dispatch_mouse_event",
|
| 58 |
+
"cdp.network.request_will_be_sent"
|
| 59 |
+
],
|
| 60 |
+
"grader": {
|
| 61 |
+
"checks": [
|
| 62 |
+
"answer_matches_expected"
|
| 63 |
+
],
|
| 64 |
+
"endpoint": "/__grade__/expected_answer",
|
| 65 |
+
"kind": "server_side"
|
| 66 |
+
},
|
| 67 |
+
"layer": "L1",
|
| 68 |
+
"scene": {
|
| 69 |
+
"kind": "self_hosted_fixture",
|
| 70 |
+
"url": "/v0_4/app"
|
| 71 |
+
},
|
| 72 |
+
"subset_id": "l1.puppeteer",
|
| 73 |
+
"tags": [
|
| 74 |
+
"family.multi_step_flow",
|
| 75 |
+
"version.v0_4"
|
| 76 |
+
],
|
| 77 |
+
"task_id": "sc_app_login_greets__pp",
|
| 78 |
+
"task_version": 1,
|
| 79 |
+
"timeouts": {
|
| 80 |
+
"hard_kill_ms": 45000,
|
| 81 |
+
"task_ms": 30000
|
| 82 |
+
},
|
| 83 |
+
"title": "Logging in yields a server-echoed greeting (puppeteer)"
|
| 84 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_logout_locks__pp.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_logout_locks.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, logs out, and answers with the server farewell plus the relocked list marker.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "logged_out",
|
| 11 |
+
"step": 6
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "bye-eve-7:locked",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "farewell_and_lock",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"op": "click",
|
| 44 |
+
"selector": "#logout-btn"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"expression": "document.getElementById('greet').textContent.indexOf('bye-') !== -1 && document.getElementById('filter-count').textContent === 'locked'",
|
| 48 |
+
"op": "wait_for_function"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "document.getElementById('greet').textContent + ':' + document.getElementById('filter-count').textContent",
|
| 52 |
+
"op": "evaluate",
|
| 53 |
+
"save_as": "answer"
|
| 54 |
+
}
|
| 55 |
+
]
|
| 56 |
+
},
|
| 57 |
+
"features": [
|
| 58 |
+
"fw.puppeteer.op.new_page",
|
| 59 |
+
"fw.puppeteer.op.goto",
|
| 60 |
+
"fw.puppeteer.op.fill",
|
| 61 |
+
"fw.puppeteer.op.click",
|
| 62 |
+
"fw.puppeteer.op.wait_for_function",
|
| 63 |
+
"fw.puppeteer.op.evaluate",
|
| 64 |
+
"cdp.runtime.evaluate",
|
| 65 |
+
"cdp.input.dispatch_mouse_event",
|
| 66 |
+
"cdp.network.request_will_be_sent"
|
| 67 |
+
],
|
| 68 |
+
"grader": {
|
| 69 |
+
"checks": [
|
| 70 |
+
"answer_matches_expected"
|
| 71 |
+
],
|
| 72 |
+
"endpoint": "/__grade__/expected_answer",
|
| 73 |
+
"kind": "server_side"
|
| 74 |
+
},
|
| 75 |
+
"layer": "L1",
|
| 76 |
+
"scene": {
|
| 77 |
+
"kind": "self_hosted_fixture",
|
| 78 |
+
"url": "/v0_4/app"
|
| 79 |
+
},
|
| 80 |
+
"subset_id": "l1.puppeteer",
|
| 81 |
+
"tags": [
|
| 82 |
+
"family.multi_step_flow",
|
| 83 |
+
"version.v0_4"
|
| 84 |
+
],
|
| 85 |
+
"task_id": "sc_app_logout_locks__pp",
|
| 86 |
+
"task_version": 1,
|
| 87 |
+
"timeouts": {
|
| 88 |
+
"hard_kill_ms": 45000,
|
| 89 |
+
"task_ms": 30000
|
| 90 |
+
},
|
| 91 |
+
"title": "Logging out drops the server session and relocks the list (puppeteer)"
|
| 92 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_qty_accumulates__pp.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_qty_accumulates.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, adds one item twice, and answers with the cart line plus total.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "second_add",
|
| 11 |
+
"step": 8
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "widget-b:2:total-10",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "qty_and_total",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "!!document.getElementById('add-widget-b')",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "click",
|
| 48 |
+
"selector": "#add-widget-b"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "!!document.getElementById('cart-widget-b')",
|
| 52 |
+
"op": "wait_for_function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"op": "click",
|
| 56 |
+
"selector": "#add-widget-b"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"expression": "document.getElementById('cart-total').textContent === 'total-10'",
|
| 60 |
+
"op": "wait_for_function"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"expression": "document.getElementById('cart-widget-b').textContent.trim().replace(/ rm$/, '') + ':' + document.getElementById('cart-total').textContent",
|
| 64 |
+
"op": "evaluate",
|
| 65 |
+
"save_as": "answer"
|
| 66 |
+
}
|
| 67 |
+
]
|
| 68 |
+
},
|
| 69 |
+
"features": [
|
| 70 |
+
"fw.puppeteer.op.new_page",
|
| 71 |
+
"fw.puppeteer.op.goto",
|
| 72 |
+
"fw.puppeteer.op.fill",
|
| 73 |
+
"fw.puppeteer.op.click",
|
| 74 |
+
"fw.puppeteer.op.wait_for_function",
|
| 75 |
+
"fw.puppeteer.op.evaluate",
|
| 76 |
+
"cdp.runtime.evaluate",
|
| 77 |
+
"cdp.input.dispatch_mouse_event",
|
| 78 |
+
"cdp.network.request_will_be_sent"
|
| 79 |
+
],
|
| 80 |
+
"grader": {
|
| 81 |
+
"checks": [
|
| 82 |
+
"answer_matches_expected"
|
| 83 |
+
],
|
| 84 |
+
"endpoint": "/__grade__/expected_answer",
|
| 85 |
+
"kind": "server_side"
|
| 86 |
+
},
|
| 87 |
+
"layer": "L1",
|
| 88 |
+
"scene": {
|
| 89 |
+
"kind": "self_hosted_fixture",
|
| 90 |
+
"url": "/v0_4/app"
|
| 91 |
+
},
|
| 92 |
+
"subset_id": "l1.puppeteer",
|
| 93 |
+
"tags": [
|
| 94 |
+
"family.multi_step_flow",
|
| 95 |
+
"version.v0_4"
|
| 96 |
+
],
|
| 97 |
+
"task_id": "sc_app_qty_accumulates__pp",
|
| 98 |
+
"task_version": 1,
|
| 99 |
+
"timeouts": {
|
| 100 |
+
"hard_kill_ms": 45000,
|
| 101 |
+
"task_ms": 30000
|
| 102 |
+
},
|
| 103 |
+
"title": "Adding the same item twice accumulates quantity server-side (puppeteer)"
|
| 104 |
+
}
|
definitions/tasks/L1/puppeteer/sc_app_remove_item__pp.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/app_remove_item.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Logs in, adds two items, removes one, and answers with the corrected total.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "line_removed",
|
| 11 |
+
"step": 11
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "total-7",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "corrected_total",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#user-in",
|
| 32 |
+
"value": "eve-7"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#login-btn"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('greet').textContent.indexOf('hi-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"expression": "!!document.getElementById('add-widget-a')",
|
| 44 |
+
"op": "wait_for_function"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"op": "click",
|
| 48 |
+
"selector": "#add-widget-a"
|
| 49 |
+
},
|
| 50 |
+
{
|
| 51 |
+
"expression": "!!document.getElementById('cart-widget-a')",
|
| 52 |
+
"op": "wait_for_function"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"op": "click",
|
| 56 |
+
"selector": "#add-widget-c"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"expression": "!!document.getElementById('cart-widget-c')",
|
| 60 |
+
"op": "wait_for_function"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"op": "click",
|
| 64 |
+
"selector": "#rm-widget-a"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"expression": "document.getElementById('cart-total').textContent === 'total-7'",
|
| 68 |
+
"op": "wait_for_function"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"op": "text_content",
|
| 72 |
+
"save_as": "answer",
|
| 73 |
+
"selector": "#cart-total"
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
},
|
| 77 |
+
"features": [
|
| 78 |
+
"fw.puppeteer.op.new_page",
|
| 79 |
+
"fw.puppeteer.op.goto",
|
| 80 |
+
"fw.puppeteer.op.fill",
|
| 81 |
+
"fw.puppeteer.op.click",
|
| 82 |
+
"fw.puppeteer.op.wait_for_function",
|
| 83 |
+
"fw.puppeteer.op.text_content",
|
| 84 |
+
"cdp.runtime.evaluate",
|
| 85 |
+
"cdp.input.dispatch_mouse_event",
|
| 86 |
+
"cdp.network.request_will_be_sent"
|
| 87 |
+
],
|
| 88 |
+
"grader": {
|
| 89 |
+
"checks": [
|
| 90 |
+
"answer_matches_expected"
|
| 91 |
+
],
|
| 92 |
+
"endpoint": "/__grade__/expected_answer",
|
| 93 |
+
"kind": "server_side"
|
| 94 |
+
},
|
| 95 |
+
"layer": "L1",
|
| 96 |
+
"scene": {
|
| 97 |
+
"kind": "self_hosted_fixture",
|
| 98 |
+
"url": "/v0_4/app"
|
| 99 |
+
},
|
| 100 |
+
"subset_id": "l1.puppeteer",
|
| 101 |
+
"tags": [
|
| 102 |
+
"family.multi_step_flow",
|
| 103 |
+
"version.v0_4"
|
| 104 |
+
],
|
| 105 |
+
"task_id": "sc_app_remove_item__pp",
|
| 106 |
+
"task_version": 1,
|
| 107 |
+
"timeouts": {
|
| 108 |
+
"hard_kill_ms": 45000,
|
| 109 |
+
"task_ms": 30000
|
| 110 |
+
},
|
| 111 |
+
"title": "Removing a cart line updates the server-side total (puppeteer)"
|
| 112 |
+
}
|
definitions/tasks/L1/puppeteer/sc_computed_style_breadth__pp.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/computed_style_breadth.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "best_effort",
|
| 5 |
+
"description": "Calls CSS.getComputedStyleForNode through each raw-capable driver, requires at least 100 distinct properties, and verifies display, visibility, opacity, and pointer-events remain readable.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "computed_style_read",
|
| 11 |
+
"step": 3
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "breadth-ok|count=",
|
| 15 |
+
"kind": "saved_contains",
|
| 16 |
+
"label": "property_set_is_broad",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"expected": "display=block|visibility=visible|opacity=0.75|pointer-events=auto",
|
| 21 |
+
"kind": "saved_contains",
|
| 22 |
+
"label": "critical_properties_readable",
|
| 23 |
+
"name": "answer"
|
| 24 |
+
}
|
| 25 |
+
],
|
| 26 |
+
"kind": "framework_puppeteer",
|
| 27 |
+
"steps": [
|
| 28 |
+
{
|
| 29 |
+
"op": "new_page"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"op": "goto",
|
| 33 |
+
"url": "{fixture_url}"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"op": "wait_for_selector",
|
| 37 |
+
"selector": "#computed-style-target",
|
| 38 |
+
"state": "visible"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"min_property_count": 100,
|
| 42 |
+
"op": "computed_style_breadth",
|
| 43 |
+
"required_properties": [
|
| 44 |
+
"display",
|
| 45 |
+
"visibility",
|
| 46 |
+
"opacity",
|
| 47 |
+
"pointer-events"
|
| 48 |
+
],
|
| 49 |
+
"save_as": "answer",
|
| 50 |
+
"selector": "#computed-style-target"
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
+
},
|
| 54 |
+
"features": [
|
| 55 |
+
"fw.puppeteer.op.new_page",
|
| 56 |
+
"fw.puppeteer.op.goto",
|
| 57 |
+
"fw.puppeteer.op.wait_for_selector",
|
| 58 |
+
"fw.puppeteer.op.computed_style_breadth",
|
| 59 |
+
"cdp.css.get_computed_style_for_node"
|
| 60 |
+
],
|
| 61 |
+
"grader": {
|
| 62 |
+
"checks": [
|
| 63 |
+
"answer_matches_expected"
|
| 64 |
+
],
|
| 65 |
+
"endpoint": "/__grade__/expected_answer",
|
| 66 |
+
"kind": "server_side"
|
| 67 |
+
},
|
| 68 |
+
"layer": "L1",
|
| 69 |
+
"scene": {
|
| 70 |
+
"kind": "self_hosted_fixture",
|
| 71 |
+
"url": "/v0_4/obs"
|
| 72 |
+
},
|
| 73 |
+
"subset_id": "l1.puppeteer",
|
| 74 |
+
"tags": [
|
| 75 |
+
"family.observation",
|
| 76 |
+
"version.v0_4",
|
| 77 |
+
"purpose.issue_106",
|
| 78 |
+
"purpose.diagnostic"
|
| 79 |
+
],
|
| 80 |
+
"task_id": "sc_computed_style_breadth__pp",
|
| 81 |
+
"task_version": 1,
|
| 82 |
+
"timeouts": {
|
| 83 |
+
"hard_kill_ms": 45000,
|
| 84 |
+
"task_ms": 30000
|
| 85 |
+
},
|
| 86 |
+
"title": "Computed style exposes a broad property set and critical interaction properties (puppeteer)"
|
| 87 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_eval_context_persists__pp.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_eval_context_persists.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Sets a window global in one evaluate call and derives a value from it in a second call. A driver that evaluates each expression in a throwaway context (or a fresh isolated world) fails here.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "second_eval_ok",
|
| 11 |
+
"step": 3
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "42",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "context_persisted",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"expression": "window.__abb_x = 41, 'set'",
|
| 31 |
+
"op": "evaluate"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"expression": "String(window.__abb_x + 1)",
|
| 35 |
+
"op": "evaluate",
|
| 36 |
+
"save_as": "answer"
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"features": [
|
| 41 |
+
"fw.puppeteer.op.new_page",
|
| 42 |
+
"fw.puppeteer.op.goto",
|
| 43 |
+
"fw.puppeteer.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.puppeteer",
|
| 59 |
+
"tags": [
|
| 60 |
+
"family.connect_session",
|
| 61 |
+
"version.v0_4"
|
| 62 |
+
],
|
| 63 |
+
"task_id": "sc_cs_eval_context_persists__pp",
|
| 64 |
+
"task_version": 1,
|
| 65 |
+
"timeouts": {
|
| 66 |
+
"hard_kill_ms": 45000,
|
| 67 |
+
"task_ms": 30000
|
| 68 |
+
},
|
| 69 |
+
"title": "The JS world persists between separate driver evaluate calls (puppeteer)"
|
| 70 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_fresh_page_no_stale_globals__pp.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_fresh_page_no_stale_globals.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Sets a window global on the first page, then creates a new page on the same URL and confirms the global is absent. Exercises that new targets get fresh execution contexts rather than reusing the old page's world.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "recreate_ok",
|
| 11 |
+
"step": 3
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "fresh",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "world_is_fresh",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"expression": "window.__abb_marker = 41, 'marked'",
|
| 31 |
+
"op": "evaluate"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "new_page"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"op": "goto",
|
| 38 |
+
"url": "{fixture_url}"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"expression": "typeof window.__abb_marker === 'undefined' ? 'fresh' : 'stale'",
|
| 42 |
+
"op": "evaluate",
|
| 43 |
+
"save_as": "answer"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"features": [
|
| 48 |
+
"fw.puppeteer.op.new_page",
|
| 49 |
+
"fw.puppeteer.op.goto",
|
| 50 |
+
"fw.puppeteer.op.evaluate",
|
| 51 |
+
"cdp.target.create_target",
|
| 52 |
+
"cdp.runtime.evaluate"
|
| 53 |
+
],
|
| 54 |
+
"grader": {
|
| 55 |
+
"checks": [
|
| 56 |
+
"answer_matches_expected"
|
| 57 |
+
],
|
| 58 |
+
"endpoint": "/__grade__/expected_answer",
|
| 59 |
+
"kind": "server_side"
|
| 60 |
+
},
|
| 61 |
+
"layer": "L1",
|
| 62 |
+
"scene": {
|
| 63 |
+
"kind": "self_hosted_fixture",
|
| 64 |
+
"url": "/l1/core"
|
| 65 |
+
},
|
| 66 |
+
"subset_id": "l1.puppeteer",
|
| 67 |
+
"tags": [
|
| 68 |
+
"family.connect_session",
|
| 69 |
+
"version.v0_4"
|
| 70 |
+
],
|
| 71 |
+
"task_id": "sc_cs_fresh_page_no_stale_globals__pp",
|
| 72 |
+
"task_version": 1,
|
| 73 |
+
"timeouts": {
|
| 74 |
+
"hard_kill_ms": 45000,
|
| 75 |
+
"task_ms": 30000
|
| 76 |
+
},
|
| 77 |
+
"title": "A newly created page starts with a fresh JS world (puppeteer)"
|
| 78 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_ready_state_complete__pp.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_ready_state_complete.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Navigates and immediately asks the page for its readyState through the driver's evaluate surface. A driver that returns from goto before the document settles fails here.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "goto_ok",
|
| 11 |
+
"step": 1
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "complete",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "ready_complete",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"expression": "document.readyState",
|
| 31 |
+
"op": "evaluate",
|
| 32 |
+
"save_as": "answer"
|
| 33 |
+
}
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
"features": [
|
| 37 |
+
"fw.puppeteer.op.new_page",
|
| 38 |
+
"fw.puppeteer.op.goto",
|
| 39 |
+
"fw.puppeteer.op.evaluate",
|
| 40 |
+
"cdp.page.navigate",
|
| 41 |
+
"cdp.runtime.evaluate"
|
| 42 |
+
],
|
| 43 |
+
"grader": {
|
| 44 |
+
"checks": [
|
| 45 |
+
"answer_matches_expected"
|
| 46 |
+
],
|
| 47 |
+
"endpoint": "/__grade__/expected_answer",
|
| 48 |
+
"kind": "server_side"
|
| 49 |
+
},
|
| 50 |
+
"layer": "L1",
|
| 51 |
+
"scene": {
|
| 52 |
+
"kind": "self_hosted_fixture",
|
| 53 |
+
"url": "/l1/core"
|
| 54 |
+
},
|
| 55 |
+
"subset_id": "l1.puppeteer",
|
| 56 |
+
"tags": [
|
| 57 |
+
"family.connect_session",
|
| 58 |
+
"version.v0_4"
|
| 59 |
+
],
|
| 60 |
+
"task_id": "sc_cs_ready_state_complete__pp",
|
| 61 |
+
"task_version": 1,
|
| 62 |
+
"timeouts": {
|
| 63 |
+
"hard_kill_ms": 45000,
|
| 64 |
+
"task_ms": 30000
|
| 65 |
+
},
|
| 66 |
+
"title": "A settled navigation reports document.readyState complete (puppeteer)"
|
| 67 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_second_page_independent_nav__pp.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_second_page_independent_nav.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Navigates the first page to the core fixture, creates a second page, navigates it to /page2 and reads its heading. The first page's location must not constrain the second target's navigation.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "second_nav_ok",
|
| 11 |
+
"step": 3
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "Page Two",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "second_page_heading",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "new_page"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"op": "goto",
|
| 34 |
+
"url": "{fixture_base_url}/page2"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"op": "text_content",
|
| 38 |
+
"save_as": "answer",
|
| 39 |
+
"selector": "#title"
|
| 40 |
+
}
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
"features": [
|
| 44 |
+
"fw.puppeteer.op.new_page",
|
| 45 |
+
"fw.puppeteer.op.goto",
|
| 46 |
+
"fw.puppeteer.op.text_content",
|
| 47 |
+
"cdp.target.create_target",
|
| 48 |
+
"cdp.page.navigate"
|
| 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.puppeteer",
|
| 63 |
+
"tags": [
|
| 64 |
+
"family.connect_session",
|
| 65 |
+
"version.v0_4"
|
| 66 |
+
],
|
| 67 |
+
"task_id": "sc_cs_second_page_independent_nav__pp",
|
| 68 |
+
"task_version": 1,
|
| 69 |
+
"timeouts": {
|
| 70 |
+
"hard_kill_ms": 45000,
|
| 71 |
+
"task_ms": 30000
|
| 72 |
+
},
|
| 73 |
+
"title": "A second page navigates independently of the first (puppeteer)"
|
| 74 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_session_survives_three_pages__pp.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_session_survives_three_pages.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Creates three pages in sequence, navigating each, and reads the heading from the last one. Exercises session/bookkeeping stability across repeated target creation within one attempt.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "third_page_nav_ok",
|
| 11 |
+
"step": 5
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "CDP Core Fixture",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "third_page_heading",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "new_page"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"op": "goto",
|
| 34 |
+
"url": "{fixture_base_url}/page2"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"op": "new_page"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"op": "goto",
|
| 41 |
+
"url": "{fixture_url}"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"op": "text_content",
|
| 45 |
+
"save_as": "answer",
|
| 46 |
+
"selector": "#title"
|
| 47 |
+
}
|
| 48 |
+
]
|
| 49 |
+
},
|
| 50 |
+
"features": [
|
| 51 |
+
"fw.puppeteer.op.new_page",
|
| 52 |
+
"fw.puppeteer.op.goto",
|
| 53 |
+
"fw.puppeteer.op.text_content",
|
| 54 |
+
"cdp.target.create_target"
|
| 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.puppeteer",
|
| 69 |
+
"tags": [
|
| 70 |
+
"family.connect_session",
|
| 71 |
+
"version.v0_4"
|
| 72 |
+
],
|
| 73 |
+
"task_id": "sc_cs_session_survives_three_pages__pp",
|
| 74 |
+
"task_version": 1,
|
| 75 |
+
"timeouts": {
|
| 76 |
+
"hard_kill_ms": 45000,
|
| 77 |
+
"task_ms": 30000
|
| 78 |
+
},
|
| 79 |
+
"title": "The driver session stays healthy across three page creations (puppeteer)"
|
| 80 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_two_pages_isolated__pp.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_two_pages_isolated.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Fills an input on the first page, then creates a second page on the same fixture and confirms its input is untouched. Exercises multi-target isolation within one driver session.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "second_page_created",
|
| 11 |
+
"step": 3
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "isolated",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "no_state_leak",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 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": "leak-probe"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "new_page"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"op": "goto",
|
| 39 |
+
"url": "{fixture_url}"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"expression": "document.getElementById('field').value === '' ? 'isolated' : 'leaked:' + document.getElementById('field').value",
|
| 43 |
+
"op": "evaluate",
|
| 44 |
+
"save_as": "answer"
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
},
|
| 48 |
+
"features": [
|
| 49 |
+
"fw.puppeteer.op.new_page",
|
| 50 |
+
"fw.puppeteer.op.goto",
|
| 51 |
+
"fw.puppeteer.op.fill",
|
| 52 |
+
"fw.puppeteer.op.evaluate",
|
| 53 |
+
"cdp.target.create_target",
|
| 54 |
+
"cdp.target.attach_to_target"
|
| 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.puppeteer",
|
| 69 |
+
"tags": [
|
| 70 |
+
"family.connect_session",
|
| 71 |
+
"version.v0_4"
|
| 72 |
+
],
|
| 73 |
+
"task_id": "sc_cs_two_pages_isolated__pp",
|
| 74 |
+
"task_version": 1,
|
| 75 |
+
"timeouts": {
|
| 76 |
+
"hard_kill_ms": 45000,
|
| 77 |
+
"task_ms": 30000
|
| 78 |
+
},
|
| 79 |
+
"title": "State set in one page must not leak into a second page (puppeteer)"
|
| 80 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_ua_surface__pp.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_ua_surface.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Reads the user agent through the driver's own identity surface and through page JavaScript. Exercises the session's identity plumbing end to end; every engine spoofs a Mozilla-family UA, so the page-observed value must contain 'Mozilla/'.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "driver_ua_readable",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "Mozilla/",
|
| 15 |
+
"kind": "saved_contains",
|
| 16 |
+
"label": "page_ua_mozilla",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "user_agent",
|
| 31 |
+
"save_as": "driver_ua"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"expression": "navigator.userAgent",
|
| 35 |
+
"op": "evaluate",
|
| 36 |
+
"save_as": "answer"
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"features": [
|
| 41 |
+
"fw.puppeteer.op.new_page",
|
| 42 |
+
"fw.puppeteer.op.goto",
|
| 43 |
+
"fw.puppeteer.op.user_agent",
|
| 44 |
+
"fw.puppeteer.op.evaluate",
|
| 45 |
+
"cdp.browser.get_version"
|
| 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": "/l1/core"
|
| 58 |
+
},
|
| 59 |
+
"subset_id": "l1.puppeteer",
|
| 60 |
+
"tags": [
|
| 61 |
+
"family.connect_session",
|
| 62 |
+
"version.v0_4"
|
| 63 |
+
],
|
| 64 |
+
"task_id": "sc_cs_ua_surface__pp",
|
| 65 |
+
"task_version": 1,
|
| 66 |
+
"timeouts": {
|
| 67 |
+
"hard_kill_ms": 45000,
|
| 68 |
+
"task_ms": 30000
|
| 69 |
+
},
|
| 70 |
+
"title": "Read the browser identity through the driver and the page (puppeteer)"
|
| 71 |
+
}
|
definitions/tasks/L1/puppeteer/sc_cs_url_surface__pp.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/cs_url_surface.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Navigates to the core fixture and reads the current URL through the driver's own url surface (not page JS). The reported location must contain the fixture path.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "url_readable",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "/l1/core",
|
| 15 |
+
"kind": "saved_contains",
|
| 16 |
+
"label": "url_has_fixture_path",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "url",
|
| 31 |
+
"save_as": "answer"
|
| 32 |
+
}
|
| 33 |
+
]
|
| 34 |
+
},
|
| 35 |
+
"features": [
|
| 36 |
+
"fw.puppeteer.op.new_page",
|
| 37 |
+
"fw.puppeteer.op.goto",
|
| 38 |
+
"fw.puppeteer.op.url",
|
| 39 |
+
"cdp.page.navigate"
|
| 40 |
+
],
|
| 41 |
+
"grader": {
|
| 42 |
+
"checks": [
|
| 43 |
+
"answer_matches_expected"
|
| 44 |
+
],
|
| 45 |
+
"endpoint": "/__grade__/expected_answer",
|
| 46 |
+
"kind": "server_side"
|
| 47 |
+
},
|
| 48 |
+
"layer": "L1",
|
| 49 |
+
"scene": {
|
| 50 |
+
"kind": "self_hosted_fixture",
|
| 51 |
+
"url": "/l1/core"
|
| 52 |
+
},
|
| 53 |
+
"subset_id": "l1.puppeteer",
|
| 54 |
+
"tags": [
|
| 55 |
+
"family.connect_session",
|
| 56 |
+
"version.v0_4"
|
| 57 |
+
],
|
| 58 |
+
"task_id": "sc_cs_url_surface__pp",
|
| 59 |
+
"task_version": 1,
|
| 60 |
+
"timeouts": {
|
| 61 |
+
"hard_kill_ms": 45000,
|
| 62 |
+
"task_ms": 30000
|
| 63 |
+
},
|
| 64 |
+
"title": "The driver's URL surface reflects the navigated location (puppeteer)"
|
| 65 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dl_download_checksum__pp.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dl_download_checksum.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Clicks the attachment link, captures the download to the artifact dir, and answers with the probe-computed sha256 prefix and size of the saved bytes.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "download_captured",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"kind": "file_nonempty",
|
| 15 |
+
"label": "bytes_on_disk",
|
| 16 |
+
"path": "{artifact_dir}/dl.txt"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"expected": "2902f066860b:21",
|
| 20 |
+
"kind": "saved_equals",
|
| 21 |
+
"label": "checksum",
|
| 22 |
+
"name": "answer"
|
| 23 |
+
}
|
| 24 |
+
],
|
| 25 |
+
"kind": "framework_puppeteer",
|
| 26 |
+
"steps": [
|
| 27 |
+
{
|
| 28 |
+
"op": "new_page"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"op": "goto",
|
| 32 |
+
"url": "{fixture_url}"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "download",
|
| 36 |
+
"path": "{artifact_dir}/dl.txt",
|
| 37 |
+
"save_as": "answer",
|
| 38 |
+
"selector": "#dl-link"
|
| 39 |
+
}
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
"features": [
|
| 43 |
+
"fw.puppeteer.op.new_page",
|
| 44 |
+
"fw.puppeteer.op.goto",
|
| 45 |
+
"fw.puppeteer.op.download",
|
| 46 |
+
"cdp.browser.set_download_behavior",
|
| 47 |
+
"cdp.page.download_will_begin"
|
| 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/dialogs"
|
| 60 |
+
},
|
| 61 |
+
"subset_id": "l1.puppeteer",
|
| 62 |
+
"tags": [
|
| 63 |
+
"family.dialog_download_upload",
|
| 64 |
+
"version.v0_4"
|
| 65 |
+
],
|
| 66 |
+
"task_id": "sc_dl_download_checksum__pp",
|
| 67 |
+
"task_version": 1,
|
| 68 |
+
"timeouts": {
|
| 69 |
+
"hard_kill_ms": 45000,
|
| 70 |
+
"task_ms": 30000
|
| 71 |
+
},
|
| 72 |
+
"title": "A clicked download is captured and its bytes checksummed (puppeteer)"
|
| 73 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dlg_alert_message__pp.json
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dlg_alert_message.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Arms an auto-accept dialog handler, clicks a button whose handler alerts a script-computed message, and answers with the recorded dialog log.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "page_unblocked",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "dlg-alert-42",
|
| 15 |
+
"kind": "saved_contains",
|
| 16 |
+
"label": "alert_recorded",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"action": "accept",
|
| 31 |
+
"op": "on_dialog"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "click",
|
| 35 |
+
"selector": "#btn-alert"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"expression": "document.getElementById('dlg-out').textContent.indexOf('alert-done') !== -1",
|
| 39 |
+
"op": "wait_for_function"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"op": "get_dialogs",
|
| 43 |
+
"save_as": "answer"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"features": [
|
| 48 |
+
"fw.puppeteer.op.new_page",
|
| 49 |
+
"fw.puppeteer.op.goto",
|
| 50 |
+
"fw.puppeteer.op.on_dialog",
|
| 51 |
+
"fw.puppeteer.op.click",
|
| 52 |
+
"fw.puppeteer.op.wait_for_function",
|
| 53 |
+
"fw.puppeteer.op.get_dialogs",
|
| 54 |
+
"cdp.page.javascript_dialog_opening",
|
| 55 |
+
"cdp.page.handle_java_script_dialog"
|
| 56 |
+
],
|
| 57 |
+
"grader": {
|
| 58 |
+
"checks": [
|
| 59 |
+
"answer_matches_expected"
|
| 60 |
+
],
|
| 61 |
+
"endpoint": "/__grade__/expected_answer",
|
| 62 |
+
"kind": "server_side"
|
| 63 |
+
},
|
| 64 |
+
"layer": "L1",
|
| 65 |
+
"scene": {
|
| 66 |
+
"kind": "self_hosted_fixture",
|
| 67 |
+
"url": "/v0_4/dialogs"
|
| 68 |
+
},
|
| 69 |
+
"subset_id": "l1.puppeteer",
|
| 70 |
+
"tags": [
|
| 71 |
+
"family.dialog_download_upload",
|
| 72 |
+
"version.v0_4"
|
| 73 |
+
],
|
| 74 |
+
"task_id": "sc_dlg_alert_message__pp",
|
| 75 |
+
"task_version": 1,
|
| 76 |
+
"timeouts": {
|
| 77 |
+
"hard_kill_ms": 45000,
|
| 78 |
+
"task_ms": 30000
|
| 79 |
+
},
|
| 80 |
+
"title": "An alert dialog is intercepted and its computed message recorded (puppeteer)"
|
| 81 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dlg_confirm_accept__pp.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dlg_confirm_accept.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Arms an accepting dialog handler and clicks a button whose confirm() result is written into the DOM with a computed suffix.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "confirm_resolved",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "confirm-yes-33",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "yes_branch",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"action": "accept",
|
| 31 |
+
"op": "on_dialog"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "click",
|
| 35 |
+
"selector": "#btn-confirm"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"expression": "document.getElementById('dlg-out').textContent.indexOf('confirm-') !== -1",
|
| 39 |
+
"op": "wait_for_function"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"op": "text_content",
|
| 43 |
+
"save_as": "answer",
|
| 44 |
+
"selector": "#dlg-out"
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
},
|
| 48 |
+
"features": [
|
| 49 |
+
"fw.puppeteer.op.new_page",
|
| 50 |
+
"fw.puppeteer.op.goto",
|
| 51 |
+
"fw.puppeteer.op.on_dialog",
|
| 52 |
+
"fw.puppeteer.op.click",
|
| 53 |
+
"fw.puppeteer.op.wait_for_function",
|
| 54 |
+
"fw.puppeteer.op.text_content",
|
| 55 |
+
"cdp.page.javascript_dialog_opening",
|
| 56 |
+
"cdp.page.handle_java_script_dialog"
|
| 57 |
+
],
|
| 58 |
+
"grader": {
|
| 59 |
+
"checks": [
|
| 60 |
+
"answer_matches_expected"
|
| 61 |
+
],
|
| 62 |
+
"endpoint": "/__grade__/expected_answer",
|
| 63 |
+
"kind": "server_side"
|
| 64 |
+
},
|
| 65 |
+
"layer": "L1",
|
| 66 |
+
"scene": {
|
| 67 |
+
"kind": "self_hosted_fixture",
|
| 68 |
+
"url": "/v0_4/dialogs"
|
| 69 |
+
},
|
| 70 |
+
"subset_id": "l1.puppeteer",
|
| 71 |
+
"tags": [
|
| 72 |
+
"family.dialog_download_upload",
|
| 73 |
+
"version.v0_4"
|
| 74 |
+
],
|
| 75 |
+
"task_id": "sc_dlg_confirm_accept__pp",
|
| 76 |
+
"task_version": 1,
|
| 77 |
+
"timeouts": {
|
| 78 |
+
"hard_kill_ms": 45000,
|
| 79 |
+
"task_ms": 30000
|
| 80 |
+
},
|
| 81 |
+
"title": "Accepting a confirm dialog drives the page down the yes-branch (puppeteer)"
|
| 82 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dlg_confirm_dismiss__pp.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dlg_confirm_dismiss.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Arms a dismissing dialog handler and confirms the page observes confirm() === false.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "confirm_resolved",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "confirm-no-33",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "no_branch",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"action": "dismiss",
|
| 31 |
+
"op": "on_dialog"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "click",
|
| 35 |
+
"selector": "#btn-confirm"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"expression": "document.getElementById('dlg-out').textContent.indexOf('confirm-') !== -1",
|
| 39 |
+
"op": "wait_for_function"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"op": "text_content",
|
| 43 |
+
"save_as": "answer",
|
| 44 |
+
"selector": "#dlg-out"
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
},
|
| 48 |
+
"features": [
|
| 49 |
+
"fw.puppeteer.op.new_page",
|
| 50 |
+
"fw.puppeteer.op.goto",
|
| 51 |
+
"fw.puppeteer.op.on_dialog",
|
| 52 |
+
"fw.puppeteer.op.click",
|
| 53 |
+
"fw.puppeteer.op.wait_for_function",
|
| 54 |
+
"fw.puppeteer.op.text_content",
|
| 55 |
+
"cdp.page.javascript_dialog_opening",
|
| 56 |
+
"cdp.page.handle_java_script_dialog"
|
| 57 |
+
],
|
| 58 |
+
"grader": {
|
| 59 |
+
"checks": [
|
| 60 |
+
"answer_matches_expected"
|
| 61 |
+
],
|
| 62 |
+
"endpoint": "/__grade__/expected_answer",
|
| 63 |
+
"kind": "server_side"
|
| 64 |
+
},
|
| 65 |
+
"layer": "L1",
|
| 66 |
+
"scene": {
|
| 67 |
+
"kind": "self_hosted_fixture",
|
| 68 |
+
"url": "/v0_4/dialogs"
|
| 69 |
+
},
|
| 70 |
+
"subset_id": "l1.puppeteer",
|
| 71 |
+
"tags": [
|
| 72 |
+
"family.dialog_download_upload",
|
| 73 |
+
"version.v0_4"
|
| 74 |
+
],
|
| 75 |
+
"task_id": "sc_dlg_confirm_dismiss__pp",
|
| 76 |
+
"task_version": 1,
|
| 77 |
+
"timeouts": {
|
| 78 |
+
"hard_kill_ms": 45000,
|
| 79 |
+
"task_ms": 30000
|
| 80 |
+
},
|
| 81 |
+
"title": "Dismissing a confirm dialog drives the page down the no-branch (puppeteer)"
|
| 82 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dlg_prompt_text__pp.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dlg_prompt_text.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Arms an accepting dialog handler carrying prompt text and confirms the page receives exactly that text instead of the default.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "prompt_resolved",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "prompt-typed-19",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "driver_text_used",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"action": "accept",
|
| 31 |
+
"op": "on_dialog",
|
| 32 |
+
"text": "typed-19"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "click",
|
| 36 |
+
"selector": "#btn-prompt"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"expression": "document.getElementById('dlg-out').textContent.indexOf('prompt-') !== -1",
|
| 40 |
+
"op": "wait_for_function"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"op": "text_content",
|
| 44 |
+
"save_as": "answer",
|
| 45 |
+
"selector": "#dlg-out"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"features": [
|
| 50 |
+
"fw.puppeteer.op.new_page",
|
| 51 |
+
"fw.puppeteer.op.goto",
|
| 52 |
+
"fw.puppeteer.op.on_dialog",
|
| 53 |
+
"fw.puppeteer.op.click",
|
| 54 |
+
"fw.puppeteer.op.wait_for_function",
|
| 55 |
+
"fw.puppeteer.op.text_content",
|
| 56 |
+
"cdp.page.javascript_dialog_opening",
|
| 57 |
+
"cdp.page.handle_java_script_dialog"
|
| 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/dialogs"
|
| 70 |
+
},
|
| 71 |
+
"subset_id": "l1.puppeteer",
|
| 72 |
+
"tags": [
|
| 73 |
+
"family.dialog_download_upload",
|
| 74 |
+
"version.v0_4"
|
| 75 |
+
],
|
| 76 |
+
"task_id": "sc_dlg_prompt_text__pp",
|
| 77 |
+
"task_version": 1,
|
| 78 |
+
"timeouts": {
|
| 79 |
+
"hard_kill_ms": 45000,
|
| 80 |
+
"task_ms": 30000
|
| 81 |
+
},
|
| 82 |
+
"title": "A prompt dialog receives driver-supplied text (puppeteer)"
|
| 83 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dlg_sequence_two_dialogs__pp.json
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dlg_sequence_two_dialogs.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "One click raises an alert then a confirm; the armed handler must resolve both so the page reaches its computed end state, and the dialog log must show both entries.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "sequence_resolved",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "seq-y-4",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "end_state",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"expected": "first-4",
|
| 21 |
+
"kind": "saved_contains",
|
| 22 |
+
"label": "alert_logged",
|
| 23 |
+
"name": "dialog_log"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"expected": "second-4",
|
| 27 |
+
"kind": "saved_contains",
|
| 28 |
+
"label": "confirm_logged",
|
| 29 |
+
"name": "dialog_log"
|
| 30 |
+
}
|
| 31 |
+
],
|
| 32 |
+
"kind": "framework_puppeteer",
|
| 33 |
+
"steps": [
|
| 34 |
+
{
|
| 35 |
+
"op": "new_page"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"op": "goto",
|
| 39 |
+
"url": "{fixture_url}"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"action": "accept",
|
| 43 |
+
"op": "on_dialog"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"op": "click",
|
| 47 |
+
"selector": "#btn-two"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"expression": "document.getElementById('dlg-out').textContent.indexOf('seq-') !== -1",
|
| 51 |
+
"op": "wait_for_function"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"op": "text_content",
|
| 55 |
+
"save_as": "answer",
|
| 56 |
+
"selector": "#dlg-out"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"op": "get_dialogs",
|
| 60 |
+
"save_as": "dialog_log"
|
| 61 |
+
}
|
| 62 |
+
]
|
| 63 |
+
},
|
| 64 |
+
"features": [
|
| 65 |
+
"fw.puppeteer.op.new_page",
|
| 66 |
+
"fw.puppeteer.op.goto",
|
| 67 |
+
"fw.puppeteer.op.on_dialog",
|
| 68 |
+
"fw.puppeteer.op.click",
|
| 69 |
+
"fw.puppeteer.op.wait_for_function",
|
| 70 |
+
"fw.puppeteer.op.text_content",
|
| 71 |
+
"fw.puppeteer.op.get_dialogs",
|
| 72 |
+
"cdp.page.javascript_dialog_opening",
|
| 73 |
+
"cdp.page.handle_java_script_dialog"
|
| 74 |
+
],
|
| 75 |
+
"grader": {
|
| 76 |
+
"checks": [
|
| 77 |
+
"answer_matches_expected"
|
| 78 |
+
],
|
| 79 |
+
"endpoint": "/__grade__/expected_answer",
|
| 80 |
+
"kind": "server_side"
|
| 81 |
+
},
|
| 82 |
+
"layer": "L1",
|
| 83 |
+
"scene": {
|
| 84 |
+
"kind": "self_hosted_fixture",
|
| 85 |
+
"url": "/v0_4/dialogs"
|
| 86 |
+
},
|
| 87 |
+
"subset_id": "l1.puppeteer",
|
| 88 |
+
"tags": [
|
| 89 |
+
"family.dialog_download_upload",
|
| 90 |
+
"version.v0_4"
|
| 91 |
+
],
|
| 92 |
+
"task_id": "sc_dlg_sequence_two_dialogs__pp",
|
| 93 |
+
"task_version": 1,
|
| 94 |
+
"timeouts": {
|
| 95 |
+
"hard_kill_ms": 45000,
|
| 96 |
+
"task_ms": 30000
|
| 97 |
+
},
|
| 98 |
+
"title": "Two dialogs raised back-to-back are both handled (puppeteer)"
|
| 99 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dyn_counter_clicks__pp.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dyn_counter_clicks.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Clicks #counter-btn three times on the probe controls page; each click increments the #press-count output via a JS handler. Reads the final tally. Exercises repeated pointer dispatch and observation of client-side state accumulation.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "third_click_ok",
|
| 11 |
+
"step": 4
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "3",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "count_is_three",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "click",
|
| 31 |
+
"selector": "#counter-btn"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "click",
|
| 35 |
+
"selector": "#counter-btn"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"op": "click",
|
| 39 |
+
"selector": "#counter-btn"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"op": "text_content",
|
| 43 |
+
"save_as": "answer",
|
| 44 |
+
"selector": "#press-count"
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
},
|
| 48 |
+
"features": [
|
| 49 |
+
"fw.puppeteer.op.new_page",
|
| 50 |
+
"fw.puppeteer.op.goto",
|
| 51 |
+
"fw.puppeteer.op.click",
|
| 52 |
+
"fw.puppeteer.op.text_content",
|
| 53 |
+
"cdp.input.dispatch_mouse_event"
|
| 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": "/v0_3/probe/controls"
|
| 66 |
+
},
|
| 67 |
+
"subset_id": "l1.puppeteer",
|
| 68 |
+
"tags": [
|
| 69 |
+
"family.waiting_dynamic",
|
| 70 |
+
"version.v0_4"
|
| 71 |
+
],
|
| 72 |
+
"task_id": "sc_dyn_counter_clicks__pp",
|
| 73 |
+
"task_version": 1,
|
| 74 |
+
"timeouts": {
|
| 75 |
+
"hard_kill_ms": 45000,
|
| 76 |
+
"task_ms": 30000
|
| 77 |
+
},
|
| 78 |
+
"title": "Click a counter button repeatedly and read the tally (puppeteer)"
|
| 79 |
+
}
|
definitions/tasks/L1/puppeteer/sc_dyn_paging_final__pp.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/dyn_paging_final.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "On the paging fixture each #next click advances a counter and fetches that page's datum over XHR. The final datum P3-FINAL-73 exists only on page 3, reachable after two clicks, so it can only be read by waiting for each async update. Exercises polling/event-driven waiting across real network round-trips.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "final_datum_settled",
|
| 11 |
+
"step": 5
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "P3-FINAL-73",
|
| 15 |
+
"kind": "saved_contains",
|
| 16 |
+
"label": "status_has_final",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "click",
|
| 31 |
+
"selector": "#next"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"expression": "document.getElementById('status').textContent.indexOf('page:2:')===0",
|
| 35 |
+
"op": "wait_for_function"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"op": "click",
|
| 39 |
+
"selector": "#next"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"expression": "document.getElementById('status').textContent.indexOf('P3-FINAL-73')>=0",
|
| 43 |
+
"op": "wait_for_function"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"op": "text_content",
|
| 47 |
+
"save_as": "answer",
|
| 48 |
+
"selector": "#status"
|
| 49 |
+
}
|
| 50 |
+
]
|
| 51 |
+
},
|
| 52 |
+
"features": [
|
| 53 |
+
"fw.puppeteer.op.new_page",
|
| 54 |
+
"fw.puppeteer.op.goto",
|
| 55 |
+
"fw.puppeteer.op.click",
|
| 56 |
+
"fw.puppeteer.op.wait_for_function",
|
| 57 |
+
"fw.puppeteer.op.text_content",
|
| 58 |
+
"cdp.network.request_will_be_sent"
|
| 59 |
+
],
|
| 60 |
+
"grader": {
|
| 61 |
+
"checks": [
|
| 62 |
+
"answer_matches_expected"
|
| 63 |
+
],
|
| 64 |
+
"endpoint": "/__grade__/expected_answer",
|
| 65 |
+
"kind": "server_side"
|
| 66 |
+
},
|
| 67 |
+
"layer": "L1",
|
| 68 |
+
"scene": {
|
| 69 |
+
"kind": "self_hosted_fixture",
|
| 70 |
+
"url": "/v2/actl2/paging"
|
| 71 |
+
},
|
| 72 |
+
"subset_id": "l1.puppeteer",
|
| 73 |
+
"tags": [
|
| 74 |
+
"family.waiting_dynamic",
|
| 75 |
+
"version.v0_4"
|
| 76 |
+
],
|
| 77 |
+
"task_id": "sc_dyn_paging_final__pp",
|
| 78 |
+
"task_version": 1,
|
| 79 |
+
"timeouts": {
|
| 80 |
+
"hard_kill_ms": 45000,
|
| 81 |
+
"task_ms": 30000
|
| 82 |
+
},
|
| 83 |
+
"title": "Advance paging via XHR clicks and read the final datum (puppeteer)"
|
| 84 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_checkbox_check__pp.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/form_checkbox_check.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Checks the #checkbox input and reads its live .checked property via evaluate. Exercises the check contract: the driver must toggle the control to a checked state observable on the DOM property, not merely dispatch a click.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "check_ok",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"kind": "saved_truthy",
|
| 15 |
+
"label": "checkbox_is_checked",
|
| 16 |
+
"name": "answer"
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"kind": "framework_puppeteer",
|
| 20 |
+
"steps": [
|
| 21 |
+
{
|
| 22 |
+
"op": "new_page"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"op": "goto",
|
| 26 |
+
"url": "{fixture_url}"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"op": "check",
|
| 30 |
+
"selector": "#checkbox"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"expression": "document.getElementById('checkbox').checked",
|
| 34 |
+
"op": "evaluate",
|
| 35 |
+
"save_as": "answer"
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
"features": [
|
| 40 |
+
"fw.puppeteer.op.new_page",
|
| 41 |
+
"fw.puppeteer.op.goto",
|
| 42 |
+
"fw.puppeteer.op.check",
|
| 43 |
+
"fw.puppeteer.op.evaluate",
|
| 44 |
+
"cdp.input.dispatch_mouse_event"
|
| 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.puppeteer",
|
| 59 |
+
"tags": [
|
| 60 |
+
"family.forms",
|
| 61 |
+
"version.v0_4"
|
| 62 |
+
],
|
| 63 |
+
"task_id": "sc_form_checkbox_check__pp",
|
| 64 |
+
"task_version": 1,
|
| 65 |
+
"timeouts": {
|
| 66 |
+
"hard_kill_ms": 45000,
|
| 67 |
+
"task_ms": 30000
|
| 68 |
+
},
|
| 69 |
+
"title": "Check a checkbox and observe the checked property (puppeteer)"
|
| 70 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_checkbox_event__pp.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/form_checkbox_event.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Checks the #agree checkbox on the probe controls page; the change handler writes 'checked' into #agree-out. Reads it back. Unlike a bare .checked read, this asserts the driver's check dispatches a real change event the page can react to.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "check_ok",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "checked",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "agree_checked",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "check",
|
| 31 |
+
"selector": "#agree"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "text_content",
|
| 35 |
+
"save_as": "answer",
|
| 36 |
+
"selector": "#agree-out"
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"features": [
|
| 41 |
+
"fw.puppeteer.op.new_page",
|
| 42 |
+
"fw.puppeteer.op.goto",
|
| 43 |
+
"fw.puppeteer.op.check",
|
| 44 |
+
"fw.puppeteer.op.text_content",
|
| 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_3/probe/controls"
|
| 58 |
+
},
|
| 59 |
+
"subset_id": "l1.puppeteer",
|
| 60 |
+
"tags": [
|
| 61 |
+
"family.forms",
|
| 62 |
+
"version.v0_4"
|
| 63 |
+
],
|
| 64 |
+
"task_id": "sc_form_checkbox_event__pp",
|
| 65 |
+
"task_version": 1,
|
| 66 |
+
"timeouts": {
|
| 67 |
+
"hard_kill_ms": 45000,
|
| 68 |
+
"task_ms": 30000
|
| 69 |
+
},
|
| 70 |
+
"title": "Check a checkbox and observe its change handler output (puppeteer)"
|
| 71 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_fill_overwrites__pp.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/form_fill_overwrites.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Fills the same input twice; fill semantics require clear-then-set, so only the second value must remain.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "second_fill_ok",
|
| 11 |
+
"step": 3
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "second-77",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "second_value_only",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "fill",
|
| 31 |
+
"selector": "#overwrite",
|
| 32 |
+
"value": "first-11"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "fill",
|
| 36 |
+
"selector": "#overwrite",
|
| 37 |
+
"value": "second-77"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"op": "input_value",
|
| 41 |
+
"save_as": "answer",
|
| 42 |
+
"selector": "#overwrite"
|
| 43 |
+
}
|
| 44 |
+
]
|
| 45 |
+
},
|
| 46 |
+
"features": [
|
| 47 |
+
"fw.puppeteer.op.new_page",
|
| 48 |
+
"fw.puppeteer.op.goto",
|
| 49 |
+
"fw.puppeteer.op.fill",
|
| 50 |
+
"fw.puppeteer.op.input_value",
|
| 51 |
+
"cdp.input.insert_text"
|
| 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/forms"
|
| 64 |
+
},
|
| 65 |
+
"subset_id": "l1.puppeteer",
|
| 66 |
+
"tags": [
|
| 67 |
+
"family.forms",
|
| 68 |
+
"version.v0_4"
|
| 69 |
+
],
|
| 70 |
+
"task_id": "sc_form_fill_overwrites__pp",
|
| 71 |
+
"task_version": 1,
|
| 72 |
+
"timeouts": {
|
| 73 |
+
"hard_kill_ms": 45000,
|
| 74 |
+
"task_ms": 30000
|
| 75 |
+
},
|
| 76 |
+
"title": "A second fill replaces the first value (puppeteer)"
|
| 77 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_fill_readback__pp.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/form_fill_readback.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Fills the #field text input with a distinctive value and reads it back via input_value. Exercises the fill contract end to end: the driver must set the input's live value and observe it, proving keyboard/value semantics rather than just a DOM attribute.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "fill_ok",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "bench-fill-7q",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "value_roundtrips",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 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": "bench-fill-7q"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "input_value",
|
| 36 |
+
"save_as": "answer",
|
| 37 |
+
"selector": "#field"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
"features": [
|
| 42 |
+
"fw.puppeteer.op.new_page",
|
| 43 |
+
"fw.puppeteer.op.goto",
|
| 44 |
+
"fw.puppeteer.op.fill",
|
| 45 |
+
"fw.puppeteer.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": "/l1/core"
|
| 59 |
+
},
|
| 60 |
+
"subset_id": "l1.puppeteer",
|
| 61 |
+
"tags": [
|
| 62 |
+
"family.forms",
|
| 63 |
+
"version.v0_4"
|
| 64 |
+
],
|
| 65 |
+
"task_id": "sc_form_fill_readback__pp",
|
| 66 |
+
"task_version": 1,
|
| 67 |
+
"timeouts": {
|
| 68 |
+
"hard_kill_ms": 45000,
|
| 69 |
+
"task_ms": 30000
|
| 70 |
+
},
|
| 71 |
+
"title": "Fill a text input and read the value back (puppeteer)"
|
| 72 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_focus_active_element__pp.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/form_focus_active_element.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Focuses the core text field through each driver's public route or documented Runtime.evaluate fallback, then verifies the page's active element.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "focus_route_completed",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "field",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "active_element_changed",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "focus",
|
| 31 |
+
"selector": "#field"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"expression": "document.activeElement && document.activeElement.id",
|
| 35 |
+
"op": "evaluate",
|
| 36 |
+
"save_as": "answer"
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"features": [
|
| 41 |
+
"fw.puppeteer.op.new_page",
|
| 42 |
+
"fw.puppeteer.op.goto",
|
| 43 |
+
"fw.puppeteer.op.focus",
|
| 44 |
+
"fw.puppeteer.op.evaluate",
|
| 45 |
+
"cdp.dom.focus",
|
| 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": "/l1/core"
|
| 59 |
+
},
|
| 60 |
+
"subset_id": "l1.puppeteer",
|
| 61 |
+
"tags": [
|
| 62 |
+
"family.forms",
|
| 63 |
+
"version.v0_4",
|
| 64 |
+
"purpose.issue_106"
|
| 65 |
+
],
|
| 66 |
+
"task_id": "sc_form_focus_active_element__pp",
|
| 67 |
+
"task_version": 1,
|
| 68 |
+
"timeouts": {
|
| 69 |
+
"hard_kill_ms": 45000,
|
| 70 |
+
"task_ms": 30000
|
| 71 |
+
},
|
| 72 |
+
"title": "The driver focus route changes document.activeElement (puppeteer)"
|
| 73 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_label_click_toggles__pp.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/form_label_click_toggles.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Clicks the label (not the checkbox) and reads the change-handler output; label activation semantics must reach the associated control.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "label_click_ok",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "via-label-on",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "change_fired",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"op": "click",
|
| 31 |
+
"selector": "#via-label"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"op": "text_content",
|
| 35 |
+
"save_as": "answer",
|
| 36 |
+
"selector": "#label-out"
|
| 37 |
+
}
|
| 38 |
+
]
|
| 39 |
+
},
|
| 40 |
+
"features": [
|
| 41 |
+
"fw.puppeteer.op.new_page",
|
| 42 |
+
"fw.puppeteer.op.goto",
|
| 43 |
+
"fw.puppeteer.op.click",
|
| 44 |
+
"fw.puppeteer.op.text_content",
|
| 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.puppeteer",
|
| 60 |
+
"tags": [
|
| 61 |
+
"family.forms",
|
| 62 |
+
"version.v0_4"
|
| 63 |
+
],
|
| 64 |
+
"task_id": "sc_form_label_click_toggles__pp",
|
| 65 |
+
"task_version": 1,
|
| 66 |
+
"timeouts": {
|
| 67 |
+
"hard_kill_ms": 45000,
|
| 68 |
+
"task_ms": 30000
|
| 69 |
+
},
|
| 70 |
+
"title": "Clicking a label toggles its control and fires change (puppeteer)"
|
| 71 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_press_enter_handler__pp.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_generated_from": "tasks/scenarios/form_press_enter_handler.scenario.json",
|
| 3 |
+
"artifact_profile": "l1_standard",
|
| 4 |
+
"chrome_gate": "required",
|
| 5 |
+
"description": "Presses Enter inside a text field whose keydown handler records the event; exercises real key-event dispatch, not value mutation.",
|
| 6 |
+
"driver": {
|
| 7 |
+
"checks": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "step_ok",
|
| 10 |
+
"label": "press_ok",
|
| 11 |
+
"step": 2
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"expected": "enter-65",
|
| 15 |
+
"kind": "saved_equals",
|
| 16 |
+
"label": "keydown_seen",
|
| 17 |
+
"name": "answer"
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"kind": "framework_puppeteer",
|
| 21 |
+
"steps": [
|
| 22 |
+
{
|
| 23 |
+
"op": "new_page"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"op": "goto",
|
| 27 |
+
"url": "{fixture_url}"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"key": "Enter",
|
| 31 |
+
"op": "press",
|
| 32 |
+
"selector": "#enter-field"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"op": "text_content",
|
| 36 |
+
"save_as": "answer",
|
| 37 |
+
"selector": "#enter-out"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
"features": [
|
| 42 |
+
"fw.puppeteer.op.new_page",
|
| 43 |
+
"fw.puppeteer.op.goto",
|
| 44 |
+
"fw.puppeteer.op.press",
|
| 45 |
+
"fw.puppeteer.op.text_content",
|
| 46 |
+
"cdp.input.dispatch_key_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/forms"
|
| 59 |
+
},
|
| 60 |
+
"subset_id": "l1.puppeteer",
|
| 61 |
+
"tags": [
|
| 62 |
+
"family.forms",
|
| 63 |
+
"version.v0_4"
|
| 64 |
+
],
|
| 65 |
+
"task_id": "sc_form_press_enter_handler__pp",
|
| 66 |
+
"task_version": 1,
|
| 67 |
+
"timeouts": {
|
| 68 |
+
"hard_kill_ms": 45000,
|
| 69 |
+
"task_ms": 30000
|
| 70 |
+
},
|
| 71 |
+
"title": "press Enter reaches the focused field's key handler (puppeteer)"
|
| 72 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_radio_pick__pp.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": "framework_puppeteer",
|
| 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.puppeteer.op.new_page",
|
| 42 |
+
"fw.puppeteer.op.goto",
|
| 43 |
+
"fw.puppeteer.op.click",
|
| 44 |
+
"fw.puppeteer.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.puppeteer",
|
| 60 |
+
"tags": [
|
| 61 |
+
"family.forms",
|
| 62 |
+
"version.v0_4"
|
| 63 |
+
],
|
| 64 |
+
"task_id": "sc_form_radio_pick__pp",
|
| 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 (puppeteer)"
|
| 71 |
+
}
|
definitions/tasks/L1/puppeteer/sc_form_select_option__pp.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": "framework_puppeteer",
|
| 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.puppeteer.op.new_page",
|
| 43 |
+
"fw.puppeteer.op.goto",
|
| 44 |
+
"fw.puppeteer.op.select_option",
|
| 45 |
+
"fw.puppeteer.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.puppeteer",
|
| 61 |
+
"tags": [
|
| 62 |
+
"family.forms",
|
| 63 |
+
"version.v0_4"
|
| 64 |
+
],
|
| 65 |
+
"task_id": "sc_form_select_option__pp",
|
| 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 (puppeteer)"
|
| 72 |
+
}
|