Skip to content

Commit

Permalink
fix data-testid for pipeline run status icon
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeAlonso committed Aug 1, 2024
1 parent 4e5953a commit cebadf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ class RunDetails extends PipelinesTopology {
}

private findStatusLabel(timeout = 180000) {
return cy.get(
'h1[data-testid="app-page-title"] .pf-v5-l-split__item:last-child .pf-v5-c-label__text',
{ timeout },
);
return cy.get('[data-testid="status-icon"]', { timeout });
}

expectStatusLabelToBe(statusValue: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const PipelineDetailsTitle: React.FC<RecurringRunTitleProps> = ({
)}
{statusIcon && (
<SplitItem>
<Label color={color} icon={icon}>
<Label color={color} icon={icon} data-testid="status-icon">
{label}
</Label>
</SplitItem>
Expand Down

0 comments on commit cebadf7

Please sign in to comment.