From 8165534bb61314ea596a8e0884b5ce61063952c4 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Fri, 14 Sep 2018 20:48:33 +0200 Subject: [PATCH] Add css identifiers to all components for testing --- ui/src/component/ConfirmDialog.tsx | 17 ++++++++++++++--- ui/src/component/DefaultPage.tsx | 3 +++ ui/src/component/Header.tsx | 10 +++++----- ui/src/component/Message.tsx | 12 +++++++----- ui/src/component/Navigation.tsx | 12 +++++++++--- ui/src/component/SettingsDialog.tsx | 8 +++++++- ui/src/component/ToggleVisibility.tsx | 2 +- ui/src/pages/Applications.tsx | 5 +++-- ui/src/pages/Clients.tsx | 5 +++-- ui/src/pages/Login.tsx | 7 ++++--- ui/src/pages/Messages.tsx | 3 ++- ui/src/pages/Users.tsx | 12 ++++++++---- ui/src/pages/dialog/AddApplicationDialog.tsx | 11 ++++++++--- ui/src/pages/dialog/AddClientDialog.tsx | 9 +++++++-- ui/src/pages/dialog/AddEditUserDialog.tsx | 12 +++++++++--- 15 files changed, 90 insertions(+), 38 deletions(-) diff --git a/ui/src/component/ConfirmDialog.tsx b/ui/src/component/ConfirmDialog.tsx index bf85fcf..20cf895 100644 --- a/ui/src/component/ConfirmDialog.tsx +++ b/ui/src/component/ConfirmDialog.tsx @@ -19,14 +19,25 @@ export default function ConfirmDialog({title, text, fClose, fOnSubmit}: IProps) fClose(); }; return ( - + {title} {text} - - + diff --git a/ui/src/component/DefaultPage.tsx b/ui/src/component/DefaultPage.tsx index b66b17a..536e930 100644 --- a/ui/src/component/DefaultPage.tsx +++ b/ui/src/component/DefaultPage.tsx @@ -10,11 +10,13 @@ interface IProps { buttonDisabled?: boolean; maxWidth?: number; hideButton?: boolean; + buttonId?: string; } const DefaultPage: SFC = ({ title, buttonTitle, + buttonId, fButton, buttonDisabled = false, maxWidth = 700, @@ -29,6 +31,7 @@ const DefaultPage: SFC = ({ {hideButton ? null : ( - + - - diff --git a/ui/src/component/Message.tsx b/ui/src/component/Message.tsx index da76db0..daeb79e 100644 --- a/ui/src/component/Message.tsx +++ b/ui/src/component/Message.tsx @@ -51,7 +51,7 @@ interface IProps { function Message({fDelete, classes, title, date, content, image}: IProps & Style) { return ( -
+
- + {title} - + - +
- {content} + + {content} +
diff --git a/ui/src/component/Navigation.tsx b/ui/src/component/Navigation.tsx index 5965f53..692b134 100644 --- a/ui/src/component/Navigation.tsx +++ b/ui/src/component/Navigation.tsx @@ -51,7 +51,10 @@ class Navigation extends Component { ? null : apps.map((app) => { return ( - + @@ -69,10 +72,13 @@ class Navigation extends Component { ]; return ( - +
- + diff --git a/ui/src/component/SettingsDialog.tsx b/ui/src/component/SettingsDialog.tsx index eb6e8a8..05683db 100644 --- a/ui/src/component/SettingsDialog.tsx +++ b/ui/src/component/SettingsDialog.tsx @@ -27,10 +27,15 @@ export default class SettingsDialog extends Component { fClose(); }; return ( - + Change Password {