Skip to content

Commit

Permalink
Merge pull request #7800 from coronasafe/add-id-for-cypress
Browse files Browse the repository at this point in the history
Add id for cypress prescription row
  • Loading branch information
khavinshankar committed May 13, 2024
2 parents 7300824 + 8cfacc7 commit cd56431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -97,9 +97,10 @@ export default function MedicineAdministrationTable({
</thead>

<tbody className="divide-y divide-gray-200">
{prescriptions.map((obj) => (
{prescriptions.map((obj, index) => (
<MedicineAdministrationTableRow
key={obj.id}
id={index.toString()}
prescription={obj}
intervals={pagination.slots!}
refetch={onRefetch}
Expand Down
Expand Up @@ -20,6 +20,7 @@ interface Props {
intervals: { start: Date; end: Date }[];
refetch: () => void;
readonly: boolean;
id: string;
}

export default function MedicineAdministrationTableRow({
Expand Down Expand Up @@ -171,6 +172,7 @@ export default function MedicineAdministrationTableRow({
"group transition-all duration-200 ease-in-out",
loading ? "bg-gray-300" : "bg-white hover:bg-primary-100",
)}
id={props.id}
>
<td
className="bg-gray-white sticky left-0 z-10 cursor-pointer bg-white py-3 pl-4 text-left transition-all duration-200 ease-in-out group-hover:bg-primary-100"
Expand Down

0 comments on commit cd56431

Please sign in to comment.