From 22736d39821351937cee360a855a60de716d6d2e Mon Sep 17 00:00:00 2001 From: RandomAdversary Date: Wed, 17 Jul 2019 10:51:50 +0200 Subject: [PATCH 01/10] Data-cy-* for composer appearance settings. --- containers/layouts/ComposerModeRadios.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/containers/layouts/ComposerModeRadios.js b/containers/layouts/ComposerModeRadios.js index 87962e741..fec37dd1d 100644 --- a/containers/layouts/ComposerModeRadios.js +++ b/containers/layouts/ComposerModeRadios.js @@ -19,7 +19,8 @@ const ComposerModeRadios = ({ composerMode, onChange, loading, id, ...rest }) => onChange() { onChange(POPUP); }, - children: Popup + children: Popup }; const radioCardMaximized = { value: MAXIMIZED, @@ -31,7 +32,8 @@ const ComposerModeRadios = ({ composerMode, onChange, loading, id, ...rest }) => onChange() { onChange(MAXIMIZED); }, - children: Maximized + children: Maximized }; return ; From c5991f3626d566ed21ffec7499ccbd3eb369826b Mon Sep 17 00:00:00 2001 From: RandomAdversary Date: Wed, 17 Jul 2019 11:07:38 +0200 Subject: [PATCH 02/10] Add data-cy-* for mailbox layouts. --- containers/layouts/ViewLayoutRadios.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/containers/layouts/ViewLayoutRadios.js b/containers/layouts/ViewLayoutRadios.js index e466cee04..9d2773c80 100644 --- a/containers/layouts/ViewLayoutRadios.js +++ b/containers/layouts/ViewLayoutRadios.js @@ -19,7 +19,8 @@ const ViewLayoutRadios = ({ viewLayout, onChange, loading, id, ...rest }) => { onChange() { onChange(COLUMN); }, - children: Column + children: Column }; const radioCardRow = { value: ROW, @@ -31,7 +32,8 @@ const ViewLayoutRadios = ({ viewLayout, onChange, loading, id, ...rest }) => { onChange() { onChange(ROW); }, - children: Row + children: Row }; return ; From 27235161045536d324aec227f5894e96af09480f Mon Sep 17 00:00:00 2001 From: RandomAdversary Date: Wed, 17 Jul 2019 13:18:17 +0200 Subject: [PATCH 03/10] data-cy-* for Sticky labels setting. --- containers/layouts/LayoutsSection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/containers/layouts/LayoutsSection.js b/containers/layouts/LayoutsSection.js index bf67dbcff..95efc9860 100644 --- a/containers/layouts/LayoutsSection.js +++ b/containers/layouts/LayoutsSection.js @@ -150,6 +150,7 @@ const LayoutsSection = () => { stickyLabels={StickyLabels} loading={loadingStickyLabels} onToggle={(value) => withLoadingStickyLabels(handleToggleStickyLabels(value))} + data-cy-appearance="sticky-labels" /> From f8beeb2f74a1e5f96791359b3073dbf1035f279d Mon Sep 17 00:00:00 2001 From: RandomAdversary Date: Wed, 17 Jul 2019 13:20:06 +0200 Subject: [PATCH 04/10] data-cy-* for composer mode setting. --- containers/layouts/DraftTypeSelect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/layouts/DraftTypeSelect.js b/containers/layouts/DraftTypeSelect.js index d768647ac..c9f399569 100644 --- a/containers/layouts/DraftTypeSelect.js +++ b/containers/layouts/DraftTypeSelect.js @@ -14,7 +14,7 @@ const DraftTypeSelect = ({ draftType, onChange, loading }) => { const handleChange = ({ target }) => onChange(target.value); - return ; }; DraftTypeSelect.propTypes = { From 3c5b3f310b458f3c0b4c109ba1a0ad1236def90d Mon Sep 17 00:00:00 2001 From: RandomAdversary Date: Wed, 17 Jul 2019 13:32:14 +0200 Subject: [PATCH 05/10] data-cy-* for composer text direction. --- containers/layouts/TextDirectionSelect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/layouts/TextDirectionSelect.js b/containers/layouts/TextDirectionSelect.js index adc0f6022..dede4e192 100644 --- a/containers/layouts/TextDirectionSelect.js +++ b/containers/layouts/TextDirectionSelect.js @@ -16,7 +16,7 @@ const TextDirectionSelect = ({ rightToLeft, onChange, loading }) => { onChange(target.value); }; - return ; }; TextDirectionSelect.propTypes = { From 03df77afc8278fb09e630cb545bd550a0297496d Mon Sep 17 00:00:00 2001 From: RandomAdversary Date: Wed, 17 Jul 2019 14:04:46 +0200 Subject: [PATCH 06/10] data-cy-* for read/unread toolbar. --- containers/layouts/ToolbarsSection.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/containers/layouts/ToolbarsSection.js b/containers/layouts/ToolbarsSection.js index 2484214e1..0c4573b4d 100644 --- a/containers/layouts/ToolbarsSection.js +++ b/containers/layouts/ToolbarsSection.js @@ -45,6 +45,7 @@ const ToolbarsSection = () => { disabled={loading} onChange={hanldeChange} value={READ_UNREAD} + data-cy-appearance-toolbar="read-unread" >