diff --git a/sasjs-tests/src/testSuites/Basic.ts b/sasjs-tests/src/testSuites/Basic.ts index 3e1e256..b045874 100644 --- a/sasjs-tests/src/testSuites/Basic.ts +++ b/sasjs-tests/src/testSuites/Basic.ts @@ -37,6 +37,17 @@ export const basicTests = ( assertion: (response: any) => response && response.isLoggedIn && response.userName === userName }, + { + title: "Multiple Log in attempts", + description: "Should fail on first attempt and should log the user in on second attempt", + test: async () => { + await adapter.logOut() + await adapter.logIn('invalid', 'invalid') + return adapter.logIn(userName, password) + }, + assertion: (response: any) => + response && response.isLoggedIn && response.userName === userName + }, { title: "Default config", description: