Skip to content

Commit

Permalink
fix cypress: resource and sample test (ohcnetwork#6569)
Browse files Browse the repository at this point in the history
* resource use id instead of external_id

* fix

* fix moreeee
  • Loading branch information
rithviknishad authored Nov 9, 2023
1 parent 05df8c0 commit 88c64b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/Resource/ListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default function ListView() {
<div className="mt-2 flex">
<button
data-testid="resource-details"
onClick={(_) => navigate(`/resource/${resource.external_id}`)}
onClick={(_) => navigate(`/resource/${resource.id}`)}
className="btn btn-default mr-2 w-full bg-white"
>
<i className="fas fa-eye mr-2" /> All Details
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Resource/ResourceBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const ResourceCard = ({ resource }: any) => {
<div className="mt-2 flex">
<button
data-testid="resource-details"
onClick={(_) => navigate(`/resource/${resource.external_id}`)}
onClick={(_) => navigate(`/resource/${resource.id}`)}
className="btn btn-default mr-2 w-full bg-white"
>
<i className="fas fa-eye mr-2" /> All Details
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Resource/ResourceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default function ResourceDetails(props: { id: string }) {
<ButtonV2
data-testid="update-status"
className="mt-4 w-full sm:mt-2"
href={`/resource/${data.external_id}/update`}
href={`/resource/${data.id}/update`}
>
Update Status/Details
</ButtonV2>
Expand Down

0 comments on commit 88c64b7

Please sign in to comment.