From 1ea2b1b305eeea4fde5900bad8747520ba8ab032 Mon Sep 17 00:00:00 2001 From: Midhun Kumar E Date: Tue, 29 Nov 2022 17:14:52 +0530 Subject: [PATCH] Test/add data cy for table column options (#4828) * Add data-cy for Colum edit options * minor data-cy changes. * Modify the data-cy of custom rule --- .../src/Editor/Components/Table/Table.jsx | 1 + .../src/Editor/Inspector/Components/Table.jsx | 103 ++++++++++++------ 2 files changed, 70 insertions(+), 34 deletions(-) diff --git a/frontend/src/Editor/Components/Table/Table.jsx b/frontend/src/Editor/Components/Table/Table.jsx index c8c4ba651c..ae4612add1 100644 --- a/frontend/src/Editor/Components/Table/Table.jsx +++ b/frontend/src/Editor/Components/Table/Table.jsx @@ -550,6 +550,7 @@ export function Table({ } return (
-
- +
+
- + { @@ -213,8 +218,10 @@ class TableComponent extends React.Component { />
{(column.columnType === 'string' || column.columnType === undefined || column.columnType === 'default') && ( -
- +
+
)} -
+
-
+
{column.isEditable && (
-
{this.props.t('widget.Table.validation', 'Validation')}
-
+
+ {this.props.t('widget.Table.validation', 'Validation')} +
+
-
+
-
+
-
+
{this.props.t('widget.Table.validation', 'Validation')}
-
+
-
+
-
+
-
+
{column.isEditable && (
-
{this.props.t('widget.Table.validation', 'Validation')}
-
+
+ {this.props.t('widget.Table.validation', 'Validation')} +
+
)} -
+
-