File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
static/app/views/alerts/rules/metric Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,23 @@ describe('Incident Rules Form', () => {
123
123
expect ( await screen . findByLabelText ( 'Save Rule' ) ) . toBeEnabled ( ) ;
124
124
expect ( screen . queryByText ( permissionAlertText ) ) . not . toBeInTheDocument ( ) ;
125
125
} ) ;
126
+
127
+ it ( 'renders time window' , async ( ) => {
128
+ createWrapper ( { rule} ) ;
129
+
130
+ expect ( await screen . findByText ( '1 hour interval' ) ) . toBeInTheDocument ( ) ;
131
+ } ) ;
132
+
133
+ it ( 'renders time window for activated alerts' , async ( ) => {
134
+ createWrapper ( {
135
+ rule : {
136
+ ...rule ,
137
+ monitorType : MonitorType . CONTINUOUS ,
138
+ } ,
139
+ } ) ;
140
+
141
+ expect ( await screen . findByText ( '1 hour interval' ) ) . toBeInTheDocument ( ) ;
142
+ } ) ;
126
143
} ) ;
127
144
128
145
describe ( 'Creating a new rule' , ( ) => {
You can’t perform that action at this time.
0 commit comments