Skip to content

Commit

Permalink
fix(otsar-hahayal): updated success url (#856)
Browse files Browse the repository at this point in the history
Co-authored-by: Baruch Odem (Rothkoff) <[email protected]>
  • Loading branch information
matanelgabsi and baruchiro authored Jun 18, 2024
1 parent a4ab104 commit abdf74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrapers/otsar-hahayal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [``]; */
Expand Down

0 comments on commit abdf74e

Please sign in to comment.