Skip to content

Commit 8354bc0

Browse files
calvin-codecovandrewshie-sentry
authored andcommitted
feat(pipeline): Add test analytics page (#88655)
Add tests analytics page to codecov pipeline feature and its test
1 parent cb9bad1 commit 8354bc0

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {OrganizationFixture} from 'sentry-fixture/organization';
2+
3+
import {render, screen} from 'sentry-test/reactTestingLibrary';
4+
5+
import TestsPage from 'sentry/views/pipeline/tests/tests';
6+
7+
const COVERAGE_FEATURE = 'codecov-ui';
8+
9+
describe('CoveragePageWrapper', () => {
10+
describe('when the wrapper is used', () => {
11+
it('renders the passed children', () => {
12+
render(<TestsPage />, {
13+
organization: OrganizationFixture({features: [COVERAGE_FEATURE]}),
14+
});
15+
16+
const testsAnalytics = screen.getByText('Test Analytics');
17+
expect(testsAnalytics).toBeInTheDocument();
18+
});
19+
});
20+
});
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import styled from '@emotion/styled';
2+
3+
import {space} from 'sentry/styles/space';
4+
5+
export default function TestsPage() {
6+
return (
7+
<LayoutGap>
8+
<p>Test Analytics</p>
9+
</LayoutGap>
10+
);
11+
}
12+
13+
const LayoutGap = styled('div')`
14+
display: grid;
15+
gap: ${space(2)};
16+
`;

0 commit comments

Comments
 (0)