1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-16 03:04:35 +00:00

fix(login): code refactor + sasjs-tests updated

This commit is contained in:
Saad Jutt
2021-08-26 10:33:00 +05:00
parent ee977f4fab
commit db7a5d601e
3 changed files with 109 additions and 22097 deletions

View File

@@ -41,6 +41,19 @@ export const basicTests = (
assertion: (response: any) =>
response && response.isLoggedIn && response.userName === userName
},
{
title: 'Fetch username for already logged in user',
description: 'Should log the user in',
test: async () => {
await adapter.logIn(userName, password)
const newAdapterIns = new SASjs(adapter.getSasjsConfig())
return newAdapterIns.checkSession()
},
assertion: (response: any) =>
response?.isLoggedIn && response?.userName === userName
},
{
title: 'Multiple Log in attempts',
description: