From ff2703084b3114da2a6077c2f16eea550f7a895f Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Thu, 7 Jul 2022 17:37:38 +0200 Subject: [PATCH] F #5422: Add data-cy for settings tests (#2225) (cherry picked from commit ad58c84d07e0b749ac116cb68609ad5b6456064e) --- .../src/client/containers/Settings/Authentication/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fireedge/src/client/containers/Settings/Authentication/index.js b/src/fireedge/src/client/containers/Settings/Authentication/index.js index bc5f56c29c..eccebf1eb3 100644 --- a/src/fireedge/src/client/containers/Settings/Authentication/index.js +++ b/src/fireedge/src/client/containers/Settings/Authentication/index.js @@ -93,6 +93,7 @@ const FieldComponent = memo( variant="outlined" onKeyDown={handleKeyDown} helperText={} + inputProps={{ 'data-cy': `settings-ui-text-${name}` }} {...register(name, { onBlur: handleBlur, shouldUnregister: true })} /> ) @@ -206,6 +207,7 @@ const Settings = () => { component="fieldset" key={'settings-authentication-field-' + field.name} sx={{ minInlineSize: 'auto' }} + data-cy={`settings-ui-${field.name}`} > {isEnabled[field.name] ? (