From abdf74e12ddf4d4b98f3dd3677f99c6777f2e5b3 Mon Sep 17 00:00:00 2001 From: matanelgabsi Date: Tue, 18 Jun 2024 21:22:47 +0300 Subject: [PATCH] fix(otsar-hahayal): updated success url (#856) Co-authored-by: Baruch Odem (Rothkoff) --- src/scrapers/otsar-hahayal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scrapers/otsar-hahayal.ts b/src/scrapers/otsar-hahayal.ts index a5fa7a52..7522c58c 100644 --- a/src/scrapers/otsar-hahayal.ts +++ b/src/scrapers/otsar-hahayal.ts @@ -29,7 +29,7 @@ interface ScrapedTransaction { function getPossibleLoginResults(page: Page) { const urls: PossibleLoginResults = {}; - urls[LoginResults.Success] = [`${BASE_URL}/wps/myportal/FibiMenu/Online`]; + urls[LoginResults.Success] = [new RegExp(`^${BASE_URL.replace('.', '\\.')}/wps/myportal/FibiMenu/Online`)]; urls[LoginResults.InvalidPassword] = [() => elementPresentOnPage(page, '#validationMsg')]; // TODO: support change password /* urls[LOGIN_RESULT.CHANGE_PASSWORD] = [``]; */