-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added unit test todo skeleton for public link view
- Loading branch information
1 parent
22b85d1
commit 9d9b8b9
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
packages/web-app-files/tests/unit/views/PublicLink.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
describe('PublicLink', () => { | ||
test.todo('should have the background image set') | ||
test.todo('should display the page title') | ||
test.todo('should display the logo image inside login card') | ||
test.todo('should display the configuration theme general slogan as login card footer') | ||
describe('when loading is set as true', () => { | ||
test.todo('should display the loading text with the spinner') | ||
test.todo('should not display the error message') | ||
test.todo('should not display the password required form') | ||
}) | ||
describe('when loading is set as false', () => { | ||
test.todo('should not display the loading text and the spinner') | ||
test.todo('should display error message if error message is not empty') | ||
describe('when "passwordRequired" is set as true', () => { | ||
test.todo('should display the password required form') | ||
describe('password input', () => { | ||
test.todo('should have an computed label') | ||
test.todo('should display the error message if "inputErrorMessage" is not empty') | ||
test.todo('should not display the error message if "inputErrorMessage" is falsy') | ||
}) | ||
describe('login authorize button', () => { | ||
test.todo('should be set as disabled if "password" is empty') | ||
test.todo('should be set as enabled if "password" is not empy') | ||
}) | ||
}) | ||
}) | ||
}) |