feat(test): Playwright testing integration (#4146)

This commit is contained in:
Ibrahim authored and GitHub committed 2024-05-21 14:48:35 -04:00
1 parent 856cd17531
commit fe1a706446
26 files changed
+434 -215

No files matched your search

@@ -84,6 +84,7 @@ const InvestigationalUseDialog = ({ dialogConfiguration }) => {
type={ButtonEnums.type.primary}
onClick={handleConfirmAndHide}
className="bg-primary-main"
dataCY="confirm-and-hide-button"
>
Confirm and Hide
</Button>
@@ -7,7 +7,7 @@ import Icon from '../Icon';
const StudyListTableRow = props => {
const { tableData } = props;
const { row, expandedContent, onClickRow, isExpanded, dataCY } = tableData;
const { row, expandedContent, onClickRow, isExpanded, dataCY, clickableCY } = tableData;
return (
<>
<tr
@@ -42,6 +42,7 @@ const StudyListTableRow = props => {
{ 'bg-secondary-dark': isExpanded }
)}
onClick={onClickRow}
data-cy={clickableCY}
>
{row.map((cell, index) => {
const { content, title, gridCol } = cell;
@@ -108,6 +109,7 @@ StudyListTableRow.propTypes = {
onClickRow: PropTypes.func.isRequired,
isExpanded: PropTypes.bool.isRequired,
dataCY: PropTypes.string,
clickableCY: PropTypes.string,
}),
};