Skip to content

Commit

Permalink
Added unit test todo skeleton for public link view
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Aug 30, 2021
1 parent 22b85d1 commit 9d9b8b9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions packages/web-app-files/tests/unit/views/PublicLink.spec.js
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')
})
})
})
})

0 comments on commit 9d9b8b9

Please sign in to comment.