Skip to content

Commit 18380d1

Browse files
committed
added cypress element tags 'data-cy'
1 parent 6e178e6 commit 18380d1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/apps/content-editor/src/app/views/ItemList/ItemListFilters.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ export const ItemListFilters = () => {
247247
key={field.ZUID}
248248
onClick={() => handleUpdateSortOrder(field.name)}
249249
selected={activeSortOrder === field.name}
250+
data-cy={`sort:${field.name}`}
250251
>
251252
<Typography variant="inherit" noWrap>
252253
{field.label}

src/apps/content-editor/src/app/views/ItemList/ItemListTable.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ export const ItemListTable = memo(
382382
<AutoSizer>
383383
{({ width, height }: Size) => (
384384
<DataGridPro
385+
data-cy="listItemTable"
385386
apiRef={apiRef}
386387
loading={loading}
387388
rows={loading ? [] : rows}
@@ -450,6 +451,9 @@ export const ItemListTable = memo(
450451
variant: "skeleton",
451452
noRowsVariant: "skeleton",
452453
},
454+
row: {
455+
"data-cy": "itemListRow",
456+
},
453457
}}
454458
getRowClassName={(params) => {
455459
// if included in staged changes, highlight the row

0 commit comments

Comments
 (0)