Skip to content

Commit

Permalink
Change algorithms for "wait for selector"
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed Sep 7, 2024
1 parent 8c683fd commit 8020c78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "screenshotone-validations",
"homepage": "https://screenshotone.com",
"version": "1.0.46",
"version": "1.0.47",
"description": "Validation schemes for the ScreenshotOne API requests.",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ const commonOptionsScheme = Joi.object({

wait_for_selector: Joi.string().optional(),
wait_for_selector_algorithm: Joi.string().valid(
"race",
"all"
).default('race').optional(),
"at_least_one",
"by_count"
).default('at_least_one').optional(),
fail_if_content_contains: Joi.string().optional(),

async: Joi.boolean().default(false),
Expand Down

0 comments on commit 8020c78

Please sign in to comment.