File tree 2 files changed +36
-0
lines changed
static/app/views/pipeline/tests
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
+ } ) ;
Original file line number Diff line number Diff line change
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
+ ` ;
You can’t perform that action at this time.
0 commit comments