{"benchmark_schema":"worldmodelmmbench.agent-product-world-model.v2","branches":{"observation_repository":{"environment":{"action_status":"succeeded_no_change","browser_session_changed":false,"changed_paths":[],"changed_paths_available":true,"effect_reference":"initial_s0","git_status_changed":false,"head_changed":false,"path_changes":{},"process_state_changed":false,"repository_changed":false,"repository_changed_file_snapshots":{},"repository_patch":"","repository_patch_artifact":{"encoding":null,"kind":"git_cumulative_worktree_patch","media_type":"text/x-diff","metadata":{"head":"91b73692253827a03cfbd98411a5d809b46a776b","phase":"state_t_plus_1","tool_call_id":"chatcmpl-tool-96db07d20dd67542"},"relative_path":"world_model/artifacts/sha256/e3/b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","size_bytes":0},"repository_patch_available":true,"repository_patch_full":"","repository_patch_truncated_by_benchmark":false,"terminal_session_changed":true,"unavailable_reason":null},"observation":{"exit_code":0,"is_error":false,"kind":"observation","observation_kind":"TerminalObservation","output_text":"client/extensions/woocommerce/app/store-stats/test/utils.js\nclient/extensions/woocommerce/components/order-status/test/index.js\nclient/extensions/woocommerce/components/test-live-toggle/index.js\nclient/extensions/woocommerce/components/product-search/test/utils.js\nclient/extensions/woocommerce/lib/order-status/test/index.js\nclient/extensions/woocommerce/lib/formatted-variation-name/test/index.js\nclient/extensions/woocommerce/lib/generate-variations/test/index.js\nclient/extensions/woocommerce/lib/order-values/test/index.js\nclient/extensions/woocommerce/lib/order-values/test/fixtures/order-no-tax.js\nclient/extensions/woocommerce/lib/order-values/test/fixtures/order-with-refunds.js\nclient/extensions/woocommerce/lib/order-values/test/fixtures/order-with-coupons.js\nclient/extensions/woocommerce/lib/order-values/test/fixtures/order.js\nclient/extensions/woocommerce/lib/order-values/test/totals.js\nclient/extensions/woocommerce/lib/get-payment-method-details/test/index.js\nclient/extensions/woocommerce/lib/analytics/test/tracks-utils.js\nclient/extensions/woocommerce/lib/currency/test/index.js\nclient/extensions/woocommerce/lib/get-address-view-format/test/index.js\nclient/extensions/woocommerce/state/ui/product-categories/test/selectors.js\nclient/extensions/woocommerce/state/ui/product-categories/test/edits-reducer.js\nclient/extensions/woocommerce/state/ui/product-categories/test/actions.js\nclient/extensions/woocommerce/state/ui/orders/list/test/reducer.js\nclient/extensions/woocommerce/state/ui/orders/test/selectors.js\nclient/extensions/woocommerce/state/ui/orders/test/reducer.js\nclient/extensions/woocommerce/state/ui/orders/test/fixtures/detailed-state.js\nclient/extensions/woocommerce/state/ui/orders/test/actions.js\nclient/extensions/woocommerce/state/ui/orders/edits/test/reducer.js\nclient/extensions/woocommerce/state/ui/payments/methods/test/selectors.js\nclient/extensions/woocommerce/state/ui/payments/methods/test/reducer.js\nclient/extensions/woocommerce/state/ui/payments/currency/test/selectors.js\nclient/extensions/woocommerce/state/ui/payments/currency/test/reducer.js\nclient/extensions/woocommerce/state/ui/reviews/list/test/reducer.js\nclient/extensions/woocommerce/state/ui/reviews/test/selectors.js\nclient/extensions/woocommerce/state/ui/reviews/test/reducer.js\nclient/extensions/woocommerce/state/ui/reviews/test/actions.js\nclient/extensions/woocommerce/state/ui/promotions/test/edits-reducer.js\nclient/extensions/woocommerce/state/ui/promotions/test/list-reducer.js\nclient/extensions/woocommerce/state/ui/products/variations/test/selectors.js\nclient/extensions/woocommerce/state/ui/products/variations/test/edits-reducer.js\nclient/extensions/woocommerce/state/ui/products/test/selectors.js\nclient/extensions/woocommerce/state/ui/products/test/edits-reducer.js\n=== setup-choices ===\ntotal 52\ndrwxrwxrwx+ 1 root root 4096 Sep 1 10:39 .\ndrwxrwxrwx+ 1 root root 4096 Sep 1 10:39 ..\n-rw-r-----+ 1 root root 3617 Sep 1 10:39 actions.js\n-rw-r-----+ 1 root root 778 Sep 1 10:39 reducer.js\n-rw-r-----+ 1 root root 6802 Sep 1 10:39 selectors.js\ndrwxrwxrwx+ 1 root root 4096 Sep 1 10:39 test\n\n[The command completed with exit code 0.]\n[Current working directory: /testbed]\n[Python interpreter: /usr/bin/python]\n[Command finished with exit code 0]","output_text_truncated_by_benchmark":false,"source_was_truncated":false,"terminal_control_chars_removed":56,"timed_out":false}},"official_tests":{"available":true,"execution":{"completed":true,"exit_code":0,"failure_mode":"none","timed_out":false},"oracles":[{"bucket":"FAIL_TO_PASS","name":"selectors - #getCountriesWithStates - should return the countries with states, sorted","oracle_id":"fail_to_pass-9565440597fbcc6e","scoreable":true,"status":"fail"},{"bucket":"FAIL_TO_PASS","name":"selectors - #getCountriesWithStates - should return an empty list if the locations are not loaded","oracle_id":"fail_to_pass-3f1bd983426d5f5c","scoreable":true,"status":"fail"},{"bucket":"FAIL_TO_PASS","name":"selectors - #getCountriesWithStates - should return an empty list if the locations are being loaded","oracle_id":"fail_to_pass-8fdee5d6a0754850","scoreable":true,"status":"fail"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return true if the country has states","oracle_id":"pass_to_pass-bff3e510a2cb8e54","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return true when locations are loaded.","oracle_id":"pass_to_pass-4127ea10d673517a","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the locations are being loaded","oracle_id":"pass_to_pass-a779e722f1e8478a","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountryName - should fallback to the country code if the locations are not loaded","oracle_id":"pass_to_pass-2cdc3793bd71ae83","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the country does not exist","oracle_id":"pass_to_pass-d154d3aff495a18c","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the locations are not loaded","oracle_id":"pass_to_pass-8dba651f433c0e2c","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the country does not exist","oracle_id":"pass_to_pass-235dc66c08e3b6fa","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return an empty list if the locations are being loaded","oracle_id":"pass_to_pass-1d4307ccd62ad185","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return an empty list if the locations are not loaded","oracle_id":"pass_to_pass-ea11da2328abf122","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return false when locations are loaded.","oracle_id":"pass_to_pass-d863af3272cd05e6","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the country does not have states","oracle_id":"pass_to_pass-c3ef07fc3c0984fa","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return false when locations are loaded only for a different site.","oracle_id":"pass_to_pass-8e5bfc0befbb54ed","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the locations are being loaded","oracle_id":"pass_to_pass-17a120adf414757f","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return false when locations are currently being fetched.","oracle_id":"pass_to_pass-8beadbf55c784d86","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should get the siteId from the UI tree if not provided.","oracle_id":"pass_to_pass-736147a24c741002","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should get the siteId from the UI tree if not provided.","oracle_id":"pass_to_pass-e468681f4aca6019","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getContinents - should return the continents, sorted by name","oracle_id":"pass_to_pass-a88d5314055a97ca","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountryName - should fallback to the country code if the country does not exist","oracle_id":"pass_to_pass-0cc75557cdddf322","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getContinents - should return an empty list if the locations are being loaded","oracle_id":"pass_to_pass-915ed41e2e2dac30","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return true when locations are currently being fetched.","oracle_id":"pass_to_pass-70e7d7ea6fb5ad43","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountryName - should return the country name","oracle_id":"pass_to_pass-aa4614869178140a","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getContinents - should return an empty list if the locations are not loaded","oracle_id":"pass_to_pass-328eba57905fdd34","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return the states from a country, sorted by name","oracle_id":"pass_to_pass-8fa4ea7eb00d2d9e","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return an empty list if the continent does not exist","oracle_id":"pass_to_pass-ba30b2e70d96e62d","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the locations are not loaded","oracle_id":"pass_to_pass-fd0742b315c50450","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return false when locations are loaded only for a different site.","oracle_id":"pass_to_pass-c715870c91f36595","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return false when woocommerce state is not available.","oracle_id":"pass_to_pass-5d82ddd5b23f3a53","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return false when woocommerce state is not available.","oracle_id":"pass_to_pass-3e77f797a8906252","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return the countries from a continent, sorted by name","oracle_id":"pass_to_pass-82f2edfe68b09072","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the country does not have states","oracle_id":"pass_to_pass-f538ac3a41ff810a","scoreable":true,"status":"pass"}],"resolved":false,"reward":0.0},"render_product":{"change":{"decision_fields_changed":false,"document_changed":false,"issue_state_after":"not_satisfied","issue_state_before":"not_satisfied","pixels_changed":false},"decision_fields":{"adapter_state.doInitialSetup_args":[123,"123 Test St","","Test City","AL","12345","US",true,null,null],"adapter_state.redirect_url":null},"decision_fields_scoreable":["adapter_state.doInitialSetup_args","adapter_state.redirect_url"],"document_tree":{"active_element":"body","alerts":[],"controls":[],"headings":[{"level":1,"text":"Store Location Setup - GB Country Test"}],"links":[],"title":"Store location setup redirects unsupported countries to wp-admin"},"evidence":{"after_product_observation":{"artifact_storage":null,"generated_documents":[],"multimodal_artifacts":{"accessibility_tree":{"encoding":"utf-8","kind":"product_browser_accessibility_tree","media_type":"application/json","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/ca/8b22758ef1157679c4a0819af4062d160cad889994a464cea9211d7b6f3686","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"ca8b22758ef1157679c4a0819af4062d160cad889994a464cea9211d7b6f3686","size_bytes":9078,"source_uri":null,"uri":"sha256:ca8b22758ef1157679c4a0819af4062d160cad889994a464cea9211d7b6f3686"},"dom":{"encoding":"utf-8","kind":"product_browser_dom","media_type":"application/json","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/f1/0d3b80b62a3b5f939c276ad5afc2db83eadef596e602630863640c38cc3964","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"f10d3b80b62a3b5f939c276ad5afc2db83eadef596e602630863640c38cc3964","size_bytes":1659,"source_uri":null,"uri":"sha256:f10d3b80b62a3b5f939c276ad5afc2db83eadef596e602630863640c38cc3964"},"html":{"encoding":"utf-8","kind":"product_browser_html","media_type":"text/html","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/d8/a233db078c53aa581f25d0e1967c71a20c9c19d6a43a80f7082f0fdf7e7708","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"d8a233db078c53aa581f25d0e1967c71a20c9c19d6a43a80f7082f0fdf7e7708","size_bytes":774,"source_uri":null,"uri":"sha256:d8a233db078c53aa581f25d0e1967c71a20c9c19d6a43a80f7082f0fdf7e7708"},"screenshot_png":{"encoding":null,"kind":"product_browser_screenshot","media_type":"image/png","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/fd/abdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","size_bytes":25027,"source_uri":null,"uri":"sha256:fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b"},"visible_text":{"encoding":"utf-8","kind":"product_browser_visible_text","media_type":"text/plain","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/f8/1bcede07c20f4ae9534d0b761999aa6846ebcc210801544c786020edb44425","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"f81bcede07c20f4ae9534d0b761999aa6846ebcc210801544c786020edb44425","size_bytes":177,"source_uri":null,"uri":"sha256:f81bcede07c20f4ae9534d0b761999aa6846ebcc210801544c786020edb44425"}},"outcome_kind":"rendered_product","product_state_id":"online-product-state-b71ce827ba3dd58009c73777","repository_reconstruction":{"base_commit":"91b73692253827a03cfbd98411a5d809b46a776b","capture_ok":true,"cumulative_patch_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","cumulative_patch_size_bytes":0,"deleted_paths":[],"environment_state_sha256":"3cb2dfdda1bc68af114736ad5076a85dc1ee335cbbf0cd3d829f20291d25a673","head":"91b73692253827a03cfbd98411a5d809b46a776b","live_overlay_artifact":{"encoding":null,"kind":"online_live_testbed_overlay_tar_gzip","media_type":"application/gzip","metadata":{"checkpoint_id":"initial","instance_id":"Automattic__wp-calypso-21409","trial_name":"Automattic__wp-calypso-21409__JU3DezG","visibility":"agent_environment_snapshot_no_hidden_tests"},"relative_path":"sha256/27/2adeccafe73e7009d51f2ec2be9871db5e0eb14239f483ea429be26c3c6402","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"272adeccafe73e7009d51f2ec2be9871db5e0eb14239f483ea429be26c3c6402","size_bytes":45,"source_uri":null,"uri":"sha256:272adeccafe73e7009d51f2ec2be9871db5e0eb14239f483ea429be26c3c6402"},"online_snapshot_fingerprint":"059e76c16e5b4579596a4a2934ee91742044760c8d35f367214fa063ec1b860e","snapshot_coverage":{"agent_instrumentation":"excluded_.agent_tmp","deletions":"docker_diff_explicit","git_metadata":"excluded_intentionally","ignored_and_generated":"complete_writable_layer_delta","nested_repositories":"filesystem_content_complete","nonignored_untracked":"complete_writable_layer_delta","running_process_memory_and_open_sockets":"not_snapshotted","tracked_files":"complete_writable_layer_delta"},"state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830","status_porcelain":"","tree":null},"semantic_state":{"adapter_state":{"doInitialSetup_args":[123,"123 Test St","","Test City","AL","12345","US",true,null,null],"redirect_url":null,"test_country":"GB"},"document":{"active_element":"body","alerts":[],"controls":[],"headings":[{"level":1,"text":"Store Location Setup - GB Country Test"}],"links":[],"title":"Store location setup redirects unsupported countries to wp-admin"},"visual_state":{"screenshot":{"background_rgb":[255,255,255],"color_histogram_rgb222_per_10k":[9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9911],"content_bbox_sampled":[1,5,126,33],"difference_hash_64":"2020000000000000","foreground_mean_luminance":173,"foreground_mean_rgb":[173,173,173],"foreground_mean_saturation_per_10k":0,"grayscale_entropy_millibits":268,"height":960,"horizontal_edge_per_10k":136,"non_background_per_10k":172,"perceptual_grid_rgb4":"eeeeeeeeeeeeeeeeeeeeefffffffffffffffffffffffffffdddeeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","png_sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","schema_version":"worldmodelmmbench.screenshot-visual-state.v1","vertical_edge_per_10k":180,"width":1280}}},"text_artifacts":{}},"after_screenshot_sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","reference_screenshot_sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b"},"outcome":{"exit_code":null,"failure_stage":null,"kind":"rendered_product","render_available":true},"visible_text":"Store Location Setup - GB Country Test\n\nTest Country: GB\n\ndoInitialSetup Args (raw): [123,\"123 Test St\",\"\",\"Test City\",\"AL\",\"12345\",\"US\",true,null,null]\n\nRedirect URL (raw): N/A","visible_text_available":true,"visible_text_truncated":false}},"instance_id":"Automattic__wp-calypso-21409","item_id":"Automattic__wp-calypso-21409__ZNjpazS:12","repo":"Automattic/wp-calypso","schema_version":"worldmodelmmbench.agent-product-world-model-target.v2","strata":{"action_family":"edit","observation_error":false,"reference_render_changed":false,"render_changed":false,"render_outcome_failure":false,"repository_changed":false,"selection_step_repository_changed":false,"test_changed":false}} {"benchmark_schema":"worldmodelmmbench.agent-product-world-model.v2","branches":{"observation_repository":{"environment":{"action_status":"succeeded_no_change","browser_session_changed":false,"changed_paths":[],"changed_paths_available":true,"effect_reference":"initial_s0","git_status_changed":false,"head_changed":false,"path_changes":{},"process_state_changed":false,"repository_changed":false,"repository_changed_file_snapshots":{},"repository_patch":"","repository_patch_artifact":{"encoding":null,"kind":"git_cumulative_worktree_patch","media_type":"text/x-diff","metadata":{"head":"91b73692253827a03cfbd98411a5d809b46a776b","phase":"state_t_plus_1","tool_call_id":"chatcmpl-tool-a511c2f7cbaf190b"},"relative_path":"world_model/artifacts/sha256/e3/b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","size_bytes":0},"repository_patch_available":true,"repository_patch_full":"","repository_patch_truncated_by_benchmark":false,"terminal_session_changed":true,"unavailable_reason":null},"observation":{"exit_code":0,"is_error":false,"kind":"observation","observation_kind":"TerminalObservation","output_text":"=== getCurrentUserEmail selector ===\n120:export const getCurrentUserEmail = createCurrentUserSelector( 'email' );\n=== email-verification actions ===\ntotal 40\ndrwxrwxrwx+ 1 root root 4096 Sep 1 10:39 .\ndrwxrwxrwx+ 1 root root 4096 Sep 1 10:39 ..\n-rw-r-----+ 1 root root 289 Sep 1 10:39 actions.js\n-rw-r-----+ 1 root root 814 Sep 1 10:39 reducer.js\ndrwxrwxrwx+ 1 root root 4096 Sep 1 10:39 test\n=== verifyEmail / resetVerifyEmailState ===\n9:export const verifyEmail = () => ( { type: EMAIL_VERIFY_REQUEST } );\n11:export const resetVerifyEmailState = () => ( { type: EMAIL_VERIFY_STATE_RESET } );\n\n[The command completed with exit code 0.]\n[Current working directory: /testbed]\n[Python interpreter: /usr/bin/python]\n[Command finished with exit code 0]","output_text_truncated_by_benchmark":false,"source_was_truncated":false,"terminal_control_chars_removed":101,"timed_out":false}},"official_tests":{"available":true,"execution":{"completed":true,"exit_code":0,"failure_mode":"none","timed_out":false},"oracles":[{"bucket":"FAIL_TO_PASS","name":"selectors - #getCountriesWithStates - should return the countries with states, sorted","oracle_id":"fail_to_pass-9565440597fbcc6e","scoreable":true,"status":"fail"},{"bucket":"FAIL_TO_PASS","name":"selectors - #getCountriesWithStates - should return an empty list if the locations are not loaded","oracle_id":"fail_to_pass-3f1bd983426d5f5c","scoreable":true,"status":"fail"},{"bucket":"FAIL_TO_PASS","name":"selectors - #getCountriesWithStates - should return an empty list if the locations are being loaded","oracle_id":"fail_to_pass-8fdee5d6a0754850","scoreable":true,"status":"fail"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return true if the country has states","oracle_id":"pass_to_pass-bff3e510a2cb8e54","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return true when locations are loaded.","oracle_id":"pass_to_pass-4127ea10d673517a","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the locations are being loaded","oracle_id":"pass_to_pass-a779e722f1e8478a","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountryName - should fallback to the country code if the locations are not loaded","oracle_id":"pass_to_pass-2cdc3793bd71ae83","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the country does not exist","oracle_id":"pass_to_pass-d154d3aff495a18c","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the locations are not loaded","oracle_id":"pass_to_pass-8dba651f433c0e2c","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the country does not exist","oracle_id":"pass_to_pass-235dc66c08e3b6fa","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return an empty list if the locations are being loaded","oracle_id":"pass_to_pass-1d4307ccd62ad185","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return an empty list if the locations are not loaded","oracle_id":"pass_to_pass-ea11da2328abf122","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return false when locations are loaded.","oracle_id":"pass_to_pass-d863af3272cd05e6","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the country does not have states","oracle_id":"pass_to_pass-c3ef07fc3c0984fa","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return false when locations are loaded only for a different site.","oracle_id":"pass_to_pass-8e5bfc0befbb54ed","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #hasStates - should return false if the locations are being loaded","oracle_id":"pass_to_pass-17a120adf414757f","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return false when locations are currently being fetched.","oracle_id":"pass_to_pass-8beadbf55c784d86","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should get the siteId from the UI tree if not provided.","oracle_id":"pass_to_pass-736147a24c741002","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should get the siteId from the UI tree if not provided.","oracle_id":"pass_to_pass-e468681f4aca6019","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getContinents - should return the continents, sorted by name","oracle_id":"pass_to_pass-a88d5314055a97ca","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountryName - should fallback to the country code if the country does not exist","oracle_id":"pass_to_pass-0cc75557cdddf322","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getContinents - should return an empty list if the locations are being loaded","oracle_id":"pass_to_pass-915ed41e2e2dac30","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return true when locations are currently being fetched.","oracle_id":"pass_to_pass-70e7d7ea6fb5ad43","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountryName - should return the country name","oracle_id":"pass_to_pass-aa4614869178140a","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getContinents - should return an empty list if the locations are not loaded","oracle_id":"pass_to_pass-328eba57905fdd34","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return the states from a country, sorted by name","oracle_id":"pass_to_pass-8fa4ea7eb00d2d9e","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return an empty list if the continent does not exist","oracle_id":"pass_to_pass-ba30b2e70d96e62d","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the locations are not loaded","oracle_id":"pass_to_pass-fd0742b315c50450","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return false when locations are loaded only for a different site.","oracle_id":"pass_to_pass-c715870c91f36595","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoading - should return false when woocommerce state is not available.","oracle_id":"pass_to_pass-5d82ddd5b23f3a53","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #areLocationsLoaded - should return false when woocommerce state is not available.","oracle_id":"pass_to_pass-3e77f797a8906252","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getCountries - should return the countries from a continent, sorted by name","oracle_id":"pass_to_pass-82f2edfe68b09072","scoreable":true,"status":"pass"},{"bucket":"PASS_TO_PASS","name":"selectors - #getStates - should return an empty list if the country does not have states","oracle_id":"pass_to_pass-f538ac3a41ff810a","scoreable":true,"status":"pass"}],"resolved":false,"reward":0.0},"render_product":{"change":{"decision_fields_changed":false,"document_changed":false,"issue_state_after":"not_satisfied","issue_state_before":"not_satisfied","pixels_changed":false},"decision_fields":{"adapter_state.doInitialSetup_args":[123,"123 Test St","","Test City","AL","12345","US",true,null,null],"adapter_state.redirect_url":null},"decision_fields_scoreable":["adapter_state.doInitialSetup_args","adapter_state.redirect_url"],"document_tree":{"active_element":"body","alerts":[],"controls":[],"headings":[{"level":1,"text":"Store Location Setup - GB Country Test"}],"links":[],"title":"Store location setup redirects unsupported countries to wp-admin"},"evidence":{"after_product_observation":{"artifact_storage":null,"generated_documents":[],"multimodal_artifacts":{"accessibility_tree":{"encoding":"utf-8","kind":"product_browser_accessibility_tree","media_type":"application/json","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/ca/8b22758ef1157679c4a0819af4062d160cad889994a464cea9211d7b6f3686","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"ca8b22758ef1157679c4a0819af4062d160cad889994a464cea9211d7b6f3686","size_bytes":9078,"source_uri":null,"uri":"sha256:ca8b22758ef1157679c4a0819af4062d160cad889994a464cea9211d7b6f3686"},"dom":{"encoding":"utf-8","kind":"product_browser_dom","media_type":"application/json","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/f1/0d3b80b62a3b5f939c276ad5afc2db83eadef596e602630863640c38cc3964","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"f10d3b80b62a3b5f939c276ad5afc2db83eadef596e602630863640c38cc3964","size_bytes":1659,"source_uri":null,"uri":"sha256:f10d3b80b62a3b5f939c276ad5afc2db83eadef596e602630863640c38cc3964"},"html":{"encoding":"utf-8","kind":"product_browser_html","media_type":"text/html","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/d8/a233db078c53aa581f25d0e1967c71a20c9c19d6a43a80f7082f0fdf7e7708","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"d8a233db078c53aa581f25d0e1967c71a20c9c19d6a43a80f7082f0fdf7e7708","size_bytes":774,"source_uri":null,"uri":"sha256:d8a233db078c53aa581f25d0e1967c71a20c9c19d6a43a80f7082f0fdf7e7708"},"screenshot_png":{"encoding":null,"kind":"product_browser_screenshot","media_type":"image/png","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/fd/abdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","size_bytes":25027,"source_uri":null,"uri":"sha256:fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b"},"visible_text":{"encoding":"utf-8","kind":"product_browser_visible_text","media_type":"text/plain","metadata":{"instance_id":"Automattic__wp-calypso-21409","probe_contract":"worldmodelmmbench.deterministic-browser-product.v1","probe_spec_sha256":"22aae2e42cbba8f8d7b7abd086ca6f0c3edd6ec2887145d821292901cc3cfc5b","repository_state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830"},"relative_path":"sha256/f8/1bcede07c20f4ae9534d0b761999aa6846ebcc210801544c786020edb44425","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"f81bcede07c20f4ae9534d0b761999aa6846ebcc210801544c786020edb44425","size_bytes":177,"source_uri":null,"uri":"sha256:f81bcede07c20f4ae9534d0b761999aa6846ebcc210801544c786020edb44425"}},"outcome_kind":"rendered_product","product_state_id":"online-product-state-b71ce827ba3dd58009c73777","repository_reconstruction":{"base_commit":"91b73692253827a03cfbd98411a5d809b46a776b","capture_ok":true,"cumulative_patch_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","cumulative_patch_size_bytes":0,"deleted_paths":[],"environment_state_sha256":"3cb2dfdda1bc68af114736ad5076a85dc1ee335cbbf0cd3d829f20291d25a673","head":"91b73692253827a03cfbd98411a5d809b46a776b","live_overlay_artifact":{"encoding":null,"kind":"online_live_testbed_overlay_tar_gzip","media_type":"application/gzip","metadata":{"checkpoint_id":"initial","instance_id":"Automattic__wp-calypso-21409","trial_name":"Automattic__wp-calypso-21409__JU3DezG","visibility":"agent_environment_snapshot_no_hidden_tests"},"relative_path":"sha256/27/2adeccafe73e7009d51f2ec2be9871db5e0eb14239f483ea429be26c3c6402","schema_version":"worldmodelmmbench.artifact-ref.v1","sha256":"272adeccafe73e7009d51f2ec2be9871db5e0eb14239f483ea429be26c3c6402","size_bytes":45,"source_uri":null,"uri":"sha256:272adeccafe73e7009d51f2ec2be9871db5e0eb14239f483ea429be26c3c6402"},"online_snapshot_fingerprint":"059e76c16e5b4579596a4a2934ee91742044760c8d35f367214fa063ec1b860e","snapshot_coverage":{"agent_instrumentation":"excluded_.agent_tmp","deletions":"docker_diff_explicit","git_metadata":"excluded_intentionally","ignored_and_generated":"complete_writable_layer_delta","nested_repositories":"filesystem_content_complete","nonignored_untracked":"complete_writable_layer_delta","running_process_memory_and_open_sockets":"not_snapshotted","tracked_files":"complete_writable_layer_delta"},"state_sha256":"77980897c9d73f519dda85a2b062f1818a4790f1cc542f165f8c33574dc6c830","status_porcelain":"","tree":null},"semantic_state":{"adapter_state":{"doInitialSetup_args":[123,"123 Test St","","Test City","AL","12345","US",true,null,null],"redirect_url":null,"test_country":"GB"},"document":{"active_element":"body","alerts":[],"controls":[],"headings":[{"level":1,"text":"Store Location Setup - GB Country Test"}],"links":[],"title":"Store location setup redirects unsupported countries to wp-admin"},"visual_state":{"screenshot":{"background_rgb":[255,255,255],"color_histogram_rgb222_per_10k":[9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9911],"content_bbox_sampled":[1,5,126,33],"difference_hash_64":"2020000000000000","foreground_mean_luminance":173,"foreground_mean_rgb":[173,173,173],"foreground_mean_saturation_per_10k":0,"grayscale_entropy_millibits":268,"height":960,"horizontal_edge_per_10k":136,"non_background_per_10k":172,"perceptual_grid_rgb4":"eeeeeeeeeeeeeeeeeeeeefffffffffffffffffffffffffffdddeeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","png_sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","schema_version":"worldmodelmmbench.screenshot-visual-state.v1","vertical_edge_per_10k":180,"width":1280}}},"text_artifacts":{}},"after_screenshot_sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b","reference_screenshot_sha256":"fdabdbba6334c604384ec80e6896c213be7919e79326d28e0876673a170d1d1b"},"outcome":{"exit_code":null,"failure_stage":null,"kind":"rendered_product","render_available":true},"visible_text":"Store Location Setup - GB Country Test\n\nTest Country: GB\n\ndoInitialSetup Args (raw): [123,\"123 Test St\",\"\",\"Test City\",\"AL\",\"12345\",\"US\",true,null,null]\n\nRedirect URL (raw): N/A","visible_text_available":true,"visible_text_truncated":false}},"instance_id":"Automattic__wp-calypso-21409","item_id":"Automattic__wp-calypso-21409__ZNjpazS:16","repo":"Automattic/wp-calypso","schema_version":"worldmodelmmbench.agent-product-world-model-target.v2","strata":{"action_family":"edit","observation_error":false,"reference_render_changed":false,"render_changed":false,"render_outcome_failure":false,"repository_changed":false,"selection_step_repository_changed":false,"test_changed":false}} {"benchmark_schema":"worldmodelmmbench.agent-product-world-model.v2","branches":{"observation_repository":{"environment":{"action_status":"succeeded_changed","browser_session_changed":false,"changed_paths":["client/extensions/woocommerce/app/dashboard/index.js","client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js","client/extensions/woocommerce/app/dashboard/setup-footer.js","client/extensions/woocommerce/app/dashboard/store-location-setup-view.js","client/extensions/woocommerce/components/address-view/index.js","client/extensions/woocommerce/components/form-location-select/states.js","client/extensions/woocommerce/components/query-locations/index.js","client/extensions/woocommerce/lib/countries/index.js","client/extensions/woocommerce/state/sites/locations/selectors.js","client/extensions/woocommerce/state/sites/locations/test/selectors.js","client/extensions/woocommerce/state/sites/settings/actions.js"],"changed_paths_available":true,"effect_reference":"initial_s0","git_status_changed":true,"head_changed":false,"path_changes":{"client/extensions/woocommerce/app/dashboard/index.js":"modified","client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js":"modified","client/extensions/woocommerce/app/dashboard/setup-footer.js":"modified","client/extensions/woocommerce/app/dashboard/store-location-setup-view.js":"modified","client/extensions/woocommerce/components/address-view/index.js":"modified","client/extensions/woocommerce/components/form-location-select/states.js":"modified","client/extensions/woocommerce/components/query-locations/index.js":"added","client/extensions/woocommerce/lib/countries/index.js":"modified","client/extensions/woocommerce/state/sites/locations/selectors.js":"modified","client/extensions/woocommerce/state/sites/locations/test/selectors.js":"modified","client/extensions/woocommerce/state/sites/settings/actions.js":"modified"},"process_state_changed":false,"repository_changed":true,"repository_changed_file_snapshots":{"client/extensions/woocommerce/app/dashboard/index.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/app/dashboard/index.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/92/5efac05d1690f1766d5b02f24e9bd1b9d41f10f7b2870c66bbb24c01c9320a","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"925efac05d1690f1766d5b02f24e9bd1b9d41f10f7b2870c66bbb24c01c9320a","size_bytes":7615},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/app/dashboard/index.js","sha256":"925efac05d1690f1766d5b02f24e9bd1b9d41f10f7b2870c66bbb24c01c9320a","size_bytes":7615,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"925efac05d1690f1766d5b02f24e9bd1b9d41f10f7b2870c66bbb24c01c9320a","size_bytes":7615}},"client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/4d/d81a213f742c0e270fc07f102573afd050357004d6d3a8a6a90a043b839090","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"4dd81a213f742c0e270fc07f102573afd050357004d6d3a8a6a90a043b839090","size_bytes":12649},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js","sha256":"4dd81a213f742c0e270fc07f102573afd050357004d6d3a8a6a90a043b839090","size_bytes":12649,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"4dd81a213f742c0e270fc07f102573afd050357004d6d3a8a6a90a043b839090","size_bytes":12649}},"client/extensions/woocommerce/app/dashboard/setup-footer.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/app/dashboard/setup-footer.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/48/da3b98ec91388f601c48a83d38d7e0ffd4e0902c7ef7602ae62fa87fed5876","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"48da3b98ec91388f601c48a83d38d7e0ffd4e0902c7ef7602ae62fa87fed5876","size_bytes":737},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/app/dashboard/setup-footer.js","sha256":"48da3b98ec91388f601c48a83d38d7e0ffd4e0902c7ef7602ae62fa87fed5876","size_bytes":737,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"48da3b98ec91388f601c48a83d38d7e0ffd4e0902c7ef7602ae62fa87fed5876","size_bytes":737}},"client/extensions/woocommerce/app/dashboard/store-location-setup-view.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/app/dashboard/store-location-setup-view.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/1c/de14a1432cc9d72db2f49dd6980abad8c52861c49044dd4685cb03d5ed7800","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"1cde14a1432cc9d72db2f49dd6980abad8c52861c49044dd4685cb03d5ed7800","size_bytes":9250},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/app/dashboard/store-location-setup-view.js","sha256":"1cde14a1432cc9d72db2f49dd6980abad8c52861c49044dd4685cb03d5ed7800","size_bytes":9250,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"1cde14a1432cc9d72db2f49dd6980abad8c52861c49044dd4685cb03d5ed7800","size_bytes":9250}},"client/extensions/woocommerce/components/address-view/index.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/components/address-view/index.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/05/2623d591ecd83566a2ab34e92fc986483a4981725f277b0374cd456ca6cc5f","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"052623d591ecd83566a2ab34e92fc986483a4981725f277b0374cd456ca6cc5f","size_bytes":7147},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/components/address-view/index.js","sha256":"052623d591ecd83566a2ab34e92fc986483a4981725f277b0374cd456ca6cc5f","size_bytes":7147,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"052623d591ecd83566a2ab34e92fc986483a4981725f277b0374cd456ca6cc5f","size_bytes":7147}},"client/extensions/woocommerce/components/form-location-select/states.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/components/form-location-select/states.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/9d/454dd2d08216d526fbff42e9ec5454185c88c485f413d34063ae3699a27924","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"9d454dd2d08216d526fbff42e9ec5454185c88c485f413d34063ae3699a27924","size_bytes":3966},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/components/form-location-select/states.js","sha256":"9d454dd2d08216d526fbff42e9ec5454185c88c485f413d34063ae3699a27924","size_bytes":3966,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"9d454dd2d08216d526fbff42e9ec5454185c88c485f413d34063ae3699a27924","size_bytes":3966}},"client/extensions/woocommerce/components/query-locations/index.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/components/query-locations/index.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/f4/9743fffb7f41de0d9eb433f245c77fad56fdc8aac43f0c0da0d7fec0138e70","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"f49743fffb7f41de0d9eb433f245c77fad56fdc8aac43f0c0da0d7fec0138e70","size_bytes":691},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/components/query-locations/index.js","sha256":"f49743fffb7f41de0d9eb433f245c77fad56fdc8aac43f0c0da0d7fec0138e70","size_bytes":691,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"f49743fffb7f41de0d9eb433f245c77fad56fdc8aac43f0c0da0d7fec0138e70","size_bytes":691}},"client/extensions/woocommerce/lib/countries/index.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/lib/countries/index.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/64/ad339399924f957ff3ec3f8251d8bbc9bea2639b304f640c50bb7d9e93b7cb","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"64ad339399924f957ff3ec3f8251d8bbc9bea2639b304f640c50bb7d9e93b7cb","size_bytes":3212},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/lib/countries/index.js","sha256":"64ad339399924f957ff3ec3f8251d8bbc9bea2639b304f640c50bb7d9e93b7cb","size_bytes":3212,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"64ad339399924f957ff3ec3f8251d8bbc9bea2639b304f640c50bb7d9e93b7cb","size_bytes":3212}},"client/extensions/woocommerce/state/sites/locations/selectors.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/state/sites/locations/selectors.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/70/c71cd8b7282ba7177c9a3be14c2e5a2bba02e33ef0cd66ee715b4a79426c1b","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"70c71cd8b7282ba7177c9a3be14c2e5a2bba02e33ef0cd66ee715b4a79426c1b","size_bytes":6523},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/state/sites/locations/selectors.js","sha256":"70c71cd8b7282ba7177c9a3be14c2e5a2bba02e33ef0cd66ee715b4a79426c1b","size_bytes":6523,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"70c71cd8b7282ba7177c9a3be14c2e5a2bba02e33ef0cd66ee715b4a79426c1b","size_bytes":6523}},"client/extensions/woocommerce/state/sites/locations/test/selectors.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/state/sites/locations/test/selectors.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/ea/947aabb2af8b6bbf298bb1bdbeccb14a2847064b5513cde550b13528b8c329","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"ea947aabb2af8b6bbf298bb1bdbeccb14a2847064b5513cde550b13528b8c329","size_bytes":7084},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/state/sites/locations/test/selectors.js","sha256":"ea947aabb2af8b6bbf298bb1bdbeccb14a2847064b5513cde550b13528b8c329","size_bytes":7084,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"ea947aabb2af8b6bbf298bb1bdbeccb14a2847064b5513cde550b13528b8c329","size_bytes":7084}},"client/extensions/woocommerce/state/sites/settings/actions.js":{"content_artifact":{"encoding":null,"kind":"filesystem_file_content","media_type":"text/javascript","metadata":{"path":"client/extensions/woocommerce/state/sites/settings/actions.js","phase":"state_t_plus_1","source":"working_tree"},"relative_path":"world_model/artifacts/sha256/ac/a8471c7e5cb37012036bed11c58ba7c2fefa2ebef6b3fcf91d2e6ce4281fa9","schema_version":"worldmodelmmbench.runtime-artifact.v1","sha256":"aca8471c7e5cb37012036bed11c58ba7c2fefa2ebef6b3fcf91d2e6ce4281fa9","size_bytes":5309},"content_capture":"exact","exists":true,"mode":416,"mtime_ns":1788600709269903678,"path":"client/extensions/woocommerce/state/sites/settings/actions.js","sha256":"aca8471c7e5cb37012036bed11c58ba7c2fefa2ebef6b3fcf91d2e6ce4281fa9","size_bytes":5309,"source":"working_tree","type":"file","verified_content_manifest":{"kind":"file","sha256":"aca8471c7e5cb37012036bed11c58ba7c2fefa2ebef6b3fcf91d2e6ce4281fa9","size_bytes":5309}}},"repository_patch":"diff --git a/client/extensions/woocommerce/app/dashboard/index.js b/client/extensions/woocommerce/app/dashboard/index.js\nindex bfd43e05e14e29aa36c2db3c4775411a4557aa21..da08d2bd3c0aceba98ece5ea585744ec9a1e6617 100644\n--- a/client/extensions/woocommerce/app/dashboard/index.js\n+++ b/client/extensions/woocommerce/app/dashboard/index.js\n@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';\n import { bindActionCreators } from 'redux';\n import classNames from 'classnames';\n import { connect } from 'react-redux';\n+import { get, isEmpty } from 'lodash';\n import { localize } from 'i18n-calypso';\n \n /**\n@@ -44,6 +45,7 @@ import RequiredPagesSetupView from './required-pages-setup-view';\n import RequiredPluginsInstallView from './required-plugins-install-view';\n import SetupTasksView from './setup-tasks-view';\n import MailChimp from 'woocommerce/app/settings/email/mailchimp/index.js';\n+import warn from 'lib/warn';\n \n class Dashboard extends Component {\n \tstatic propTypes = {\n@@ -64,6 +66,10 @@ class Dashboard extends Component {\n \t\tsetupChoicesLoading: PropTypes.bool,\n \t};\n \n+\tstate = {\n+\t\tredirectURL: false,\n+\t};\n+\n \tcomponentDidMount = () => {\n \t\tconst { siteId } = this.props;\n \n@@ -81,6 +87,21 @@ class Dashboard extends Component {\n \t\t}\n \t};\n \n+\t// If the user 1) has set the store address in StoreLocationSetupView\n+\t// and 2) we have a redirectURL, don't render but go ahead and\n+\t// redirect (i.e. to the WooCommerce Setup Wizard in wp-admin)\n+\tshouldComponentUpdate = ( nextProps, nextState ) => {\n+\t\tconst { setStoreAddressDuringInitialSetup } = nextProps;\n+\t\tconst { redirectURL } = nextState;\n+\n+\t\tif ( setStoreAddressDuringInitialSetup && redirectURL ) {\n+\t\t\twindow.location = redirectURL;\n+\t\t\treturn false;\n+\t\t}\n+\n+\t\treturn true;\n+\t};\n+\n \tfetchStoreData = () => {\n \t\tconst { siteId, productsLoaded } = this.props;\n \t\tthis.props.fetchOrders( siteId );\n@@ -121,6 +142,10 @@ class Dashboard extends Component {\n \t\treturn translate( 'Dashboard' );\n \t};\n \n+\tonRequestRedirect = redirectURL => {\n+\t\tthis.setState( { redirectURL } );\n+\t};\n+\n \trenderDashboardSetupContent = () => {\n \t\tconst {\n \t\t\tfinishedInstallOfRequiredPlugins,\n@@ -132,6 +157,11 @@ class Dashboard extends Component {\n \t\t\tsetupChoicesLoading,\n \t\t} = this.props;\n \n+\t\tconst adminURL = get( selectedSite, 'options.admin_url', '' );\n+\t\tif ( isEmpty( adminURL ) ) {\n+\t\t\twarn( 'options.admin_url unexpectedly empty in renderDashboardSetupContent' );\n+\t\t}\n+\n \t\tif ( setupChoicesLoading ) {\n \t\t\t// Many of the clauses below depend on setup choices being in the state tree\n \t\t\t// Show a placeholder while they load\n@@ -149,6 +179,8 @@ class Dashboard extends Component {\n \t\tif ( ! setStoreAddressDuringInitialSetup ) {\n \t\t\treturn (\n \t\t\t\t\ndiff --git a/client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js b/client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js\nindex 5e57a03cf4acad93af87ddcdea738588c844c18f..69cb8172661833ceafced58505be6c2a92d37ad5 100644\n--- a/client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js\n+++ b/client/extensions/woocommerce/app/dashboard/required-plugins-install-view.js\n@@ -393,12 +393,7 @@ class RequiredPluginsInstallView extends Component {\n \t\t\t\t\t\timageWidth={ 160 }\n \t\t\t\t\t\ttitle={ translate( 'Have something to sell?' ) }\n \t\t\t\t\t\tsubtitle={ translate(\n-\t\t\t\t\t\t\t\"If you're in the {{strong}}United States{{/strong}} \" +\n-\t\t\t\t\t\t\t\t'or {{strong}}Canada{{/strong}}, you can sell your products right on ' +\n-\t\t\t\t\t\t\t\t'your site and ship them to customers in a snap!',\n-\t\t\t\t\t\t\t{\n-\t\t\t\t\t\t\t\tcomponents: { strong: },\n-\t\t\t\t\t\t\t}\n+\t\t\t\t\t\t\t'You can sell your products right on your site and ship them to customers in a snap!'\n \t\t\t\t\t\t) }\n \t\t\t\t\t>\n \t\t\t\t\t\t\n \t\t\n@@ -23,10 +23,17 @@ const SetupFooter = ( { disabled, label, onClick, primary } ) => {\n };\n \n SetupFooter.propTypes = {\n+\tbusy: PropTypes.bool,\n \tdisabled: PropTypes.bool,\n \tlabel: PropTypes.string.isRequired,\n \tonClick: PropTypes.func.isRequired,\n \tprimary: PropTypes.bool,\n };\n \n+SetupFooter.defaultProps = {\n+\tbusy: false,\n+\tdisabled: false,\n+\tprimary: false,\n+};\n+\n export default SetupFooter;\ndiff --git a/client/extensions/woocommerce/app/dashboard/store-location-setup-view.js b/client/extensions/woocommerce/app/dashboard/store-location-setup-view.js\nindex 8ed95fb558fb1c6d94d869e125d29a9449d5e1b8..e8c81f058f18fce507a358285090b8e78c1545c3 100644\n--- a/client/extensions/woocommerce/app/dashboard/store-location-setup-view.js\n+++ b/client/extensions/woocommerce/app/dashboard/store-location-setup-view.js\n@@ -8,7 +8,7 @@ import React, { Component } from 'react';\n import PropTypes from 'prop-types';\n import { bindActionCreators } from 'redux';\n import { connect } from 'react-redux';\n-import { every, find, includes, isEmpty, keys, pick, trim } from 'lodash';\n+import { every, includes, isEmpty, keys, pick, trim } from 'lodash';\n import { localize } from 'i18n-calypso';\n \n /**\n@@ -20,16 +20,22 @@ import {\n \tgetStoreLocation,\n } from 'woocommerce/state/sites/settings/general/selectors';\n import BasicWidget from 'woocommerce/components/basic-widget';\n+import { bumpStat } from 'state/analytics/actions';\n import { errorNotice } from 'state/notices/actions';\n import { getContactDetailsCache } from 'state/selectors';\n-import { getCountryData, getCountries } from 'woocommerce/lib/countries';\n+import {\n+\tareLocationsLoaded,\n+\tgetCountriesWithStates,\n+} from 'woocommerce/state/sites/locations/selectors';\n import { isCurrentUserEmailVerified } from 'state/current-user/selectors';\n+import { isStoreManagementSupportedInCalypsoForCountry } from 'woocommerce/lib/countries';\n import { setSetStoreAddressDuringInitialSetup } from 'woocommerce/state/sites/setup-choices/actions';\n import SetupFooter from './setup-footer';\n import SetupHeader from './setup-header';\n import SetupNotices from './setup-notices';\n import { doInitialSetup } from 'woocommerce/state/sites/settings/actions';\n import QueryContactDetailsCache from 'components/data/query-contact-details-cache';\n+import QueryLocations from 'woocommerce/components/query-locations';\n import QuerySettingsGeneral from 'woocommerce/components/query-settings-general';\n import userFactory from 'lib/user';\n import VerifyEmailDialog from 'components/email-verification/email-verification-dialog';\n@@ -58,6 +64,8 @@ class StoreLocationSetupView extends Component {\n \t\t\tpostalCode: PropTypes.string,\n \t\t\tcountryCode: PropTypes.string,\n \t\t} ),\n+\t\tadminURL: PropTypes.string.isRequired,\n+\t\tonRequestRedirect: PropTypes.func.isRequired,\n \t\tpushDefaultsForCountry: PropTypes.bool.isRequired,\n \t\tsettingsGeneralLoaded: PropTypes.bool,\n \t\tstoreLocation: PropTypes.shape( {\n@@ -84,19 +92,15 @@ class StoreLocationSetupView extends Component {\n \t\t\t\t\tpostcode: '',\n \t\t\t\t\tcountry: 'US',\n \t\t\t\t};\n-\t\t\t\t// If the settings general country is US or CA and it has a street address, use it\n-\t\t\t\t// Otherwise, if the contact details country is US or CA and it has a street address, use it\n-\t\t\t\tif (\n-\t\t\t\t\tincludes( [ 'US', 'CA' ], storeLocation.country ) &&\n-\t\t\t\t\t! isEmpty( storeLocation.street )\n-\t\t\t\t) {\n+\n+\t\t\t\t// If settings general has an address, use it\n+\t\t\t\t// Otherwise, if the contact details has an address, use it\n+\t\t\t\tif ( ! isEmpty( storeLocation.street ) ) {\n \t\t\t\t\taddress = pick( storeLocation, keys( address ) );\n-\t\t\t\t} else if (\n-\t\t\t\t\tincludes( [ 'US', 'CA' ], contactDetails.countryCode ) &&\n-\t\t\t\t\t! isEmpty( contactDetails.address1 )\n-\t\t\t\t) {\n+\t\t\t\t} else if ( ! isEmpty( contactDetails.address1 ) ) {\n \t\t\t\t\taddress = this.getAddressFromContactDetails( contactDetails );\n \t\t\t\t}\n+\n \t\t\t\tthis.setState( { address } );\n \t\t\t}\n \t\t}\n@@ -121,19 +125,18 @@ class StoreLocationSetupView extends Component {\n \t\tconst address = this.state.address;\n \t\taddress[ addressKey ] = newValue;\n \n-\t\t// Did they change the country? Force an appropriate state default\n-\t\tif ( 'country' === addressKey ) {\n-\t\t\tconst countryData = getCountryData( newValue );\n-\t\t\taddress.state = countryData ? countryData.defaultState : '';\n-\t\t}\n-\n \t\tthis.setState( { address, userBeganEditing: true } );\n \t};\n \n \tonNext = event => {\n-\t\tconst { currentUserEmailVerified, siteId, translate } = this.props;\n+\t\tconst { adminURL, currentUserEmailVerified, onRequestRedirect, siteId, translate } = this.props;\n \t\tevent.preventDefault();\n \n+\t\t// Already saving? Bail.\n+\t\tif ( this.state.isSaving ) {\n+\t\t\treturn;\n+\t\t}\n+\n \t\tif ( ! currentUserEmailVerified ) {\n \t\t\tthis.setState( { showEmailVerificationDialog: true } );\n \t\t\treturn;\n@@ -148,6 +151,18 @@ class StoreLocationSetupView extends Component {\n \t\t\t// No need to set isSaving to false here - we're navigating away from here\n \t\t\t// and setting isSaving to false will just light the button up again right\n \t\t\t// before the next step's dialog displays\n+\n+\t\t\t// mc stat 32 char max :P\n+\t\t\tthis.props.bumpStat( 'calypso_woo_store_setup_country', this.state.address.country );\n+\n+\t\t\t// If we don't support a calypso experience yet for this country, let\n+\t\t\t// them complete setup with the wp-admin WooCommerce wizard\n+\t\t\tif ( ! isStoreManagementSupportedInCalypsoForCountry( this.state.address.country ) ) {\n+\t\t\t\tconst storeSetupURL =\n+\t\t\t\t\tadminURL + 'admin.php?page=wc-setup&step=store_setup&activate_error=false&from=calypso';\n+\t\t\t\tonRequestRedirect( storeSetupURL );\n+\t\t\t}\n+\n \t\t\treturn setSetStoreAddressDuringInitialSetup( siteId, true );\n \t\t};\n \n@@ -158,30 +173,14 @@ class StoreLocationSetupView extends Component {\n \t\t\t);\n \t\t};\n \n-\t\t// Provides fallbacks if the country & state options were never changed/toggled,\n-\t\t// or if an unsupported country was set in state (like WC's default GB country)\n-\t\tlet country = null;\n-\t\tlet state = null;\n-\t\tif (\n-\t\t\t! this.state.address.country ||\n-\t\t\t! find( getCountries(), { code: this.state.address.country } )\n-\t\t) {\n-\t\t\tcountry = 'US';\n-\t\t\tconst countryData = getCountryData( country );\n-\t\t\tstate = this.state.address.state ? this.state.address.state : countryData.defaultState;\n-\t\t} else {\n-\t\t\tcountry = this.state.address.country;\n-\t\t\tstate = this.state.address.state;\n-\t\t}\n-\n \t\tthis.props.doInitialSetup(\n \t\t\tsiteId,\n \t\t\tthis.state.address.street,\n \t\t\tthis.state.address.street2,\n \t\t\tthis.state.address.city,\n-\t\t\tstate,\n+\t\t\tthis.state.address.state,\n \t\t\tthis.state.address.postcode,\n-\t\t\tcountry,\n+\t\t\tthis.state.address.country,\n \t\t\tthis.props.pushDefaultsForCountry,\n \t\t\tonSuccess,\n \t\t\tonFailure\n@@ -189,16 +188,30 @@ class StoreLocationSetupView extends Component {\n \t};\n \n \trenderForm = () => {\n-\t\tconst { contactDetails, settingsGeneralLoaded, translate } = this.props;\n-\t\tconst showForm = contactDetails && settingsGeneralLoaded;\n+\t\tconst {\n+\t\t\tcontactDetails,\n+\t\t\tcountriesWithStates,\n+\t\t\tlocationsLoaded,\n+\t\t\tsettingsGeneralLoaded,\n+\t\t\ttranslate,\n+\t\t} = this.props;\n+\t\tconst showForm =\n+\t\t\tcontactDetails && settingsGeneralLoaded && locationsLoaded && ! this.state.isFetchingUser;\n \n \t\t// Note: We will have to revisit this if/when we support countries that lack post codes\n-\t\tconst requiredAddressFields = pick( this.state.address, [ 'street', 'city', 'postcode' ] );\n+\t\tconst requiredKeys = [ 'country', 'city', 'postcode', 'street' ];\n+\n+\t\t// See if this country has states\n+\t\t// TODO - refactor AddressView to do this for us\n+\t\tif ( includes( countriesWithStates, this.state.address.country ) ) {\n+\t\t\trequiredKeys.push( 'state' );\n+\t\t}\n+\n+\t\tconst requiredAddressFields = pick( this.state.address, requiredKeys );\n \t\tconst everyRequiredFieldHasAValue = every( requiredAddressFields, field => {\n \t\t\treturn ! isEmpty( trim( field ) );\n \t\t} );\n-\t\tconst submitDisabled =\n-\t\t\tthis.state.isSaving || this.state.isFetchingUser || ! everyRequiredFieldHasAValue;\n+\t\tconst submitDisabled = this.state.isSaving || ! everyRequiredFieldHasAValue;\n \n \t\tif ( ! showForm ) {\n \t\t\treturn (\n@@ -215,11 +228,13 @@ class StoreLocationSetupView extends Component {\n \t\t\t\t\tclassName=\"dashboard__pre-setup-address\"\n \t\t\t\t\tisEditable\n \t\t\t\t\tonChange={ this.onChange }\n+\t\t\t\t\tshowAllLocations\n \t\t\t\t/>\n \t\t\t\t\n \t\t\t\n@@ -251,6 +266,7 @@ class StoreLocationSetupView extends Component {\n \t\t\t\t\t\tsubtitle={ translate( 'First we need to know where you are in the world.' ) }\n \t\t\t\t\t/>\n \t\t\t\t\t{ this.renderForm() }\n+\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\n@@ -261,15 +277,18 @@ class StoreLocationSetupView extends Component {\n \n function mapStateToProps( state, ownProps ) {\n \tconst { siteId } = ownProps;\n-\n \tconst contactDetails = getContactDetailsCache( state );\n \tconst currentUserEmailVerified = isCurrentUserEmailVerified( state );\n \tconst settingsGeneralLoaded = areSettingsGeneralLoaded( state, siteId );\n \tconst storeLocation = getStoreLocation( state, siteId );\n+\tconst locationsLoaded = areLocationsLoaded( state, siteId );\n+\tconst countriesWithStates = getCountriesWithStates( state, siteId );\n \n \treturn {\n \t\tcontactDetails,\n+\t\tcountriesWithStates,\n \t\tcurrentUserEmailVerified,\n+\t\tlocationsLoaded,\n \t\tsettingsGeneralLoaded,\n \t\tstoreLocation,\n \t};\n@@ -278,6 +297,7 @@ function mapStateToProps( state, ownProps ) {\n function mapDispatchToProps( dispatch ) {\n \treturn bindActionCreators(\n \t\t{\n+\t\t\tbumpStat,\n \t\t\tdoInitialSetup,\n \t\t},\n \t\tdispatch\ndiff --git a/client/extensions/woocommerce/components/address-view/index.js b/client/extensions/woocommerce/components/address-view/index.js\nindex ec4b786d75faddc0854029bb614515fe02814194..ac61181e55ae0a55a484121b14cff5bb360a60ea 100644\n--- a/client/extensions/woocommerce/components/address-view/index.js\n+++ b/client/extensions/woocommerce/components/address-view/index.js\n@@ -66,6 +66,14 @@ class AddressView extends Component {\n \t\t}\n \t};\n \n+\tonChangeCountry = event => {\n+\t\t// First, always forward the country event through\n+\t\tthis.props.onChange( event );\n+\n+\t\t// Then, send a second onChange to clear state\n+\t\tthis.props.onChange( { target: { name: 'state', value: '' } } );\n+\t};\n+\n \tgetCountryData = () => {\n \t\tconst { country } = this.props.address;\n \t\tlet countryData = find( getCountries(), { code: country || 'US' } );\n@@ -79,18 +87,18 @@ class AddressView extends Component {\n \t};\n \n \trenderCountry = () => {\n-\t\tconst { address: { country }, onChange, showAllLocations, translate } = this.props;\n+\t\tconst { address: { country }, showAllLocations, translate } = this.props;\n \t\tif ( showAllLocations ) {\n \t\t\treturn (\n \t\t\t\t\n-\t\t\t\t\t\n+\t\t\t\t\t\n \t\t\t\t\n \t\t\t);\n \t\t}\n \t\treturn (\n \t\t\t\n \t\t\t\t{ translate( 'Country' ) }\n-\t\t\t\t\n+\t\t\t\t\n \t\t\t\t\t{ getCountries().map( option => {\n \t\t\t\t\t\treturn (\n \t\t\t\t\t\t\t