1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 10:40:06 +00:00

chore(git): Merge branch 'fixing-sas9-tests' into auto-tests

This commit is contained in:
2021-07-27 14:12:11 +02:00
2 changed files with 8 additions and 13 deletions

View File

@@ -47,7 +47,9 @@ export const basicTests = (
'Should fail on first attempt and should log the user in on second attempt',
test: async () => {
await adapter.logOut()
await sleep(1000)
await adapter.logIn('invalid', 'invalid')
await sleep(1000)
return adapter.logIn(userName, password)
},
assertion: (response: any) =>
@@ -162,3 +164,7 @@ export const basicTests = (
}
]
})
const sleep = (ms: number) => {
return new Promise((resolve) => setTimeout(resolve, ms))
}