Skip to content

Commit

Permalink
feat: ✨ allowed experimental options to be an object in boyka config (#…
Browse files Browse the repository at this point in the history
…4431)

* feat: ✨ allowed experimental options to be an object in boyka config

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
WasiqB and pre-commit-ci[bot] authored Feb 8, 2025
1 parent c2a8748 commit d75f7a2
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/schemas/json/boyka-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,9 @@
},
{
"type": "boolean"
},
{
"type": "object"
}
]
},
Expand Down
18 changes: 9 additions & 9 deletions src/schemas/json/partial-repo-review.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/partial-repo-review.json",
"$defs": {
"checks": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Z]+[0-9]*$"
}
}
},
"description": "Repo-review's settings.",
"type": "object",
"additionalProperties": false,
Expand All @@ -22,14 +31,5 @@
}
]
}
},
"$defs": {
"checks": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Z]+[0-9]*$"
}
}
}
}
47 changes: 47 additions & 0 deletions src/test/boyka-config/boyka-config-web-experimental-options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://json.schemastore.org/boyka-config",
"listeners_package": "io.github.boykaframework.testng.listeners",
"ui": {
"logging": {
"exclude_logs": ["bugreport"]
},
"screenshot": {
"enabled": true,
"extension": "jpeg",
"path": "./screenshots",
"prefix": "SCR"
},
"timeout": {
"explicit_wait": 30,
"highlight_delay": 100,
"implicit_wait": 10,
"page_load_timeout": 30,
"script_timeout": 10
},
"web": {
"test_local_chrome": {
"base_url": "https://the-internet.herokuapp.com/",
"browser": "CHROME",
"browser_options": [
"use-fake-device-for-media-stream",
"use-fake-ui-for-media-stream"
],
"custom_size": {
"height": 1080,
"width": 1580
},
"experimental_options": {
"prefs": {
"download.default_directory": "${sys:user.home}/Downloads",
"download.prompt_for_download": false,
"safebrowsing.enabled": true
}
},
"headless": true,
"highlight": false,
"page_load_strategy": "NORMAL",
"resize": "CUSTOM"
}
}
}
}

0 comments on commit d75f7a2

Please sign in to comment.