1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-09 21:30:05 +00:00

test: added for verifySasLogin

This commit is contained in:
Saad Jutt
2021-09-08 15:08:55 +05:00
parent a00bf5ba67
commit 0ea6e839ac
3 changed files with 76 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ export async function verifySasViyaLogin(loginPopup: Window): Promise<{
await delay(1000)
if (loginPopup.closed) break
isAuthorized =
!loginPopup.window.location.href.includes('SASLogon') ||
loginPopup.window.location.href.includes('SASLogon') ||
loginPopup.window.document.body?.innerText?.includes(
'You have signed in.'
)