From bf6b402c4a8f12e3e8e0adaeec18b5c2af238076 Mon Sep 17 00:00:00 2001 From: Parajuli Kiran Date: Mon, 30 Aug 2021 12:07:33 +0545 Subject: [PATCH] Added unit test todo skeleton for public link view --- .../tests/unit/views/PublicLink.spec.js | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 packages/web-app-files/tests/unit/views/PublicLink.spec.js diff --git a/packages/web-app-files/tests/unit/views/PublicLink.spec.js b/packages/web-app-files/tests/unit/views/PublicLink.spec.js new file mode 100644 index 00000000000..2ca577652f0 --- /dev/null +++ b/packages/web-app-files/tests/unit/views/PublicLink.spec.js @@ -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') + }) + }) + }) +})