mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
refactor: Improve login test to handle missing user credentials
This commit is contained in:
parent
f42291a428
commit
57f41a908a
@ -9,7 +9,11 @@ import URL from 'Common/Types/API/URL';
|
||||
|
||||
test.describe('Login', () => {
|
||||
test('should be able to login', async ({ page }: { page: Page }) => {
|
||||
if (!IS_USER_REGISTERED || !REGISTERED_USER_EMAIL || !REGISTERED_USER_PASSWORD) {
|
||||
if (
|
||||
!IS_USER_REGISTERED ||
|
||||
!REGISTERED_USER_EMAIL ||
|
||||
!REGISTERED_USER_PASSWORD
|
||||
) {
|
||||
// pass this test if the user is not registered
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user