Skip to content

Commit 82763cd

Browse files
committed
align test studio icon at the top
1 parent 07fd342 commit 82763cd

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

packages/reporter/src/studio/StudioTest.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
66

77
.studio-header__test-section {
88
display: flex;
9-
align-items: center;
9+
align-items: flex-start;
1010
border-bottom: 1px solid $gray-900;
1111
padding: 16px;
1212
gap: 8px;
1313
font-size: 14px;
1414
line-height: 20px;
1515
flex-shrink: 0;
1616

17+
.state-icon {
18+
margin-top: 3px;
19+
}
20+
1721
svg {
1822
flex-shrink: 0;
1923
}

packages/reporter/src/studio/StudioTest.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,22 @@ const getParentTitlesListElements = (parentTitles: string[]) => {
3535
}
3636

3737
const StatusIcon = ({ test }: { test: Test }) => {
38+
let className = 'state-icon'
39+
3840
if (test.state === 'active') {
39-
return <IconStatusRunningOutline data-cy='running-icon' size='16' fillColor='gray-700' strokeColor='indigo-400' />
41+
return <IconStatusRunningOutline className={className} data-cy='running-icon' size='16' fillColor='gray-700' strokeColor='indigo-400' />
4042
}
4143

4244
if (test.state === 'failed') {
43-
return <IconStatusFailedSolid data-cy='failed-icon' size='16' strokeColor='red-400' />
45+
return <IconStatusFailedSolid className={className} data-cy='failed-icon' size='16' strokeColor='red-400' />
4446
}
4547

4648
if (test.state === 'passed') {
47-
return <IconStatusPassedSolid data-cy='passed-icon' size='16' strokeColor='jade-400' />
49+
return <IconStatusPassedSolid className={className} data-cy='passed-icon' size='16' strokeColor='jade-400' />
4850
}
4951

5052
// processing state or default state
51-
return <IconStatusQueuedOutline data-cy='queued-icon' size='16' strokeColor="gray-700" />
53+
return <IconStatusQueuedOutline className={className} data-cy='queued-icon' size='16' strokeColor="gray-700" />
5254
}
5355

5456
interface StudioTestProps {

0 commit comments

Comments
 (0)