72 lines
2.1 KiB
JSON
72 lines
2.1 KiB
JSON
{
|
|
"sites": [
|
|
"shopping_admin"
|
|
],
|
|
"task_id": 703,
|
|
"require_login": true,
|
|
"storage_state": "./.auth/shopping_admin_state.json",
|
|
"start_url": "http://localhost:28083/admin",
|
|
"geolocation": null,
|
|
"intent_template": "Draft a new marketing price rule for {{topic}} that offers {{rule}} for all customers",
|
|
"instantiation_dict": {
|
|
"topic": "Thanks giving sale",
|
|
"rule": "$40 discount on checkout"
|
|
},
|
|
"intent": "Draft a new marketing price rule for Thanks giving sale that offers $40 discount on checkout for all customers",
|
|
"require_reset": false,
|
|
"eval": {
|
|
"eval_types": [
|
|
"url_match",
|
|
"program_html"
|
|
],
|
|
"reference_answers": null,
|
|
"reference_url": "http://localhost:28083/admin/sales_rule/promo_quote",
|
|
"program_html": [
|
|
{
|
|
"url": "last",
|
|
"locator": "document.querySelector(\"[name='name'\").value",
|
|
"required_contents": {
|
|
"must_include": [
|
|
"Thanks giving sale"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"url": "last",
|
|
"locator": "document.querySelector('[name=\"website_ids\"').selectedIndex",
|
|
"required_contents": {
|
|
"exact_match": "0"
|
|
}
|
|
},
|
|
{
|
|
"url": "last",
|
|
"locator": "document.querySelector('[name=\"customer_group_ids\"').selectedIndex",
|
|
"required_contents": {
|
|
"exact_match": "1"
|
|
}
|
|
},
|
|
{
|
|
"url": "last",
|
|
"locator": "document.querySelector('[name=\"simple_action\"').value",
|
|
"prep_actions": [
|
|
"document.querySelector('[data-index=\"actions\"]').querySelector('.admin__collapsible-title').click()"
|
|
],
|
|
"required_contents": {
|
|
"exact_match": "cart_fixed"
|
|
}
|
|
},
|
|
{
|
|
"url": "last",
|
|
"locator": "document.querySelector('[name=\"discount_amount\"').value",
|
|
"prep_actions": [
|
|
"document.querySelector('[data-index=\"actions\"]').querySelector('.admin__collapsible-title').click()"
|
|
],
|
|
"required_contents": {
|
|
"exact_match": "40"
|
|
}
|
|
}
|
|
],
|
|
"url_note": "GOLD in PRED"
|
|
},
|
|
"intent_template_id": 258
|
|
} |