Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[unit-tests] Added unit test todo skeleton for public link view #5749

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 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,34 @@
describe('PublicLink', () => {
describe('theming options', () => {
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 the login card footer')
})

describe('when the view is still loading', () => {
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 the view is not loading anymore', () => {
test.todo('should not display the loading text and the spinner')
test.todo('should display the error message if "errorMessage" 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 a 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('submit button', () => {
test.todo('should be set as disabled if "password" is empty')
test.todo('should be set as enabled if "password" is not empty')
})
})
})
})