-
-
Notifications
You must be signed in to change notification settings - Fork 4k
tests(Playwright): Full implementation of Page Object Models (POMs) to Playwright tests #5608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
844c80f
64bfe0e
9291522
17a562d
fea16f5
a4dbfdb
10d390f
edcb653
ae8858a
68ace87
1fc9f7f
695949a
a974076
c29e957
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,8 +12,14 @@ export function UntrackSeriesModal({ hide, onConfirm, message }) { | |
| </div> | ||
| <FooterAction className="mt-4"> | ||
| <FooterAction.Right> | ||
| <FooterAction.Secondary onClick={hide}>Cancel</FooterAction.Secondary> | ||
| <FooterAction.Secondary | ||
| dataCY="cancel-button" | ||
| onClick={hide} | ||
| > | ||
| Cancel | ||
| </FooterAction.Secondary> | ||
| <FooterAction.Primary | ||
| dataCY="confirm-button" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one too. |
||
| onClick={() => { | ||
| onConfirm(); | ||
| hide(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -313,6 +313,7 @@ const DataRowComponent = React.forwardRef<HTMLDivElement, DataRowProps>( | |
| isSelected || !isVisible ? 'opacity-100' : 'opacity-0 group-hover:opacity-100' | ||
| }`} | ||
| aria-label={isVisible ? 'Hide' : 'Show'} | ||
| dataCY="visibilityToggle" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. More specific. |
||
| onClick={e => { | ||
| e.stopPropagation(); | ||
| onToggleVisibility(e); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,7 +88,12 @@ const Thumbnail = ({ | |
| loadingProgress && loadingProgress < 1 && 'bg-primary/25' | ||
| )} | ||
| ></div> | ||
| <div className="text-[11px] font-semibold text-white">{modality}</div> | ||
| <div | ||
| className="text-[11px] font-semibold text-white" | ||
| data-cy="series-modality-label" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is for a particular series consider adding something to distinguish it from the other series thumbnail, like series instance uid or something. If the locator though is straightforward, then maybe this is not so big a deal, but something to consider. This comment applies to the other data-cy values in this file too. |
||
| > | ||
| {modality} | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* top right */} | ||
|
|
@@ -139,7 +144,10 @@ const Thumbnail = ({ | |
| <Tooltip> | ||
| <TooltipContent>{description}</TooltipContent> | ||
| <TooltipTrigger> | ||
| <div className="min-h-[18px] w-[128px] overflow-hidden text-ellipsis whitespace-nowrap pb-0.5 pl-1 text-left text-[12px] font-normal leading-4 text-white"> | ||
| <div | ||
| className="min-h-[18px] w-[128px] overflow-hidden text-ellipsis whitespace-nowrap pb-0.5 pl-1 text-left text-[12px] font-normal leading-4 text-white" | ||
| data-cy="series-description-label" | ||
| > | ||
| {description} | ||
| </div> | ||
| </TooltipTrigger> | ||
|
|
@@ -180,11 +188,19 @@ const Thumbnail = ({ | |
| ></div> | ||
| <div className="flex h-full w-[calc(100%-12px)] flex-col justify-start"> | ||
| <div className="flex items-center gap-[7px]"> | ||
| <div className="text-[13px] font-semibold text-white">{modality}</div> | ||
| <div | ||
| className="text-[13px] font-semibold text-white" | ||
| data-cy="series-modality-label" | ||
| > | ||
| {modality} | ||
| </div> | ||
| <Tooltip> | ||
| <TooltipContent>{description}</TooltipContent> | ||
| <TooltipTrigger className="w-full overflow-hidden"> | ||
| <div className="max-w-[160px] overflow-hidden overflow-ellipsis whitespace-nowrap text-left text-[13px] font-normal text-white"> | ||
| <div | ||
| className="max-w-[160px] overflow-hidden overflow-ellipsis whitespace-nowrap text-left text-[13px] font-normal text-white" | ||
| data-cy="series-description-label" | ||
| > | ||
| {description} | ||
| </div> | ||
| </TooltipTrigger> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider making this more specific, like 'untracked-series-modal-cancel-button'