From 8020c7801dae13e9ff723294a838771cf2d7a4d6 Mon Sep 17 00:00:00 2001 From: Dmytro Krasun Date: Sat, 7 Sep 2024 14:15:52 +0700 Subject: [PATCH] Change algorithms for "wait for selector" --- package.json | 2 +- src/main.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 00cefdf..3b34145 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/main.ts b/src/main.ts index 230ef35..c68e99d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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),