}
const STATUSES = ['OPEN', 'CONFIRMED', 'REOPENED', 'RESOLVED'];
-const HOTSPOT_STATUSES = ['TO_REVIEW', 'REVIEWED', 'IN_REVIEW'];
+const HOTSPOT_STATUSES = ['TOREVIEW', 'REVIEWED', 'INREVIEW'];
const COMMON_STATUSES = ['CLOSED'];
export default class StatusFacet extends React.PureComponent<Props> {
it('should clear status facet', () => {
const onChange = jest.fn();
- const wrapper = shallowRender({ onChange, statuses: ['TO_REVIEW'] });
+ const wrapper = shallowRender({ onChange, statuses: ['TOREVIEW'] });
wrapper.children('FacetHeader').prop<Function>('onClear')();
expect(onChange).toBeCalledWith({ statuses: [] });
});
it('should select a status', () => {
const onChange = jest.fn();
const wrapper = shallowRender({ onChange });
- clickAndCheck('TO_REVIEW');
- clickAndCheck('OPEN', true, ['OPEN', 'TO_REVIEW']);
+ clickAndCheck('TOREVIEW');
+ clickAndCheck('OPEN', true, ['OPEN', 'TOREVIEW']);
clickAndCheck('CONFIRMED');
function clickAndCheck(status: string, multiple = false, expected = [status]) {
REOPENED: 0,
RESOLVED: 0,
CLOSED: 8,
- TO_REVIEW: 150,
- IN_REVIEW: 7,
+ TOREVIEW: 150,
+ INREVIEW: 7,
REVIEWED: 1105
}}
statuses={[]}
active={false}
disabled={false}
halfWidth={true}
- key="TO_REVIEW"
+ key="TOREVIEW"
loading={false}
name={
<StatusHelper
- status="TO_REVIEW"
+ status="TOREVIEW"
/>
}
onClick={[Function]}
stat="150"
- tooltip="issue.status.TO_REVIEW"
- value="TO_REVIEW"
+ tooltip="issue.status.TOREVIEW"
+ value="TOREVIEW"
/>
<FacetItem
active={false}
active={false}
disabled={false}
halfWidth={true}
- key="IN_REVIEW"
+ key="INREVIEW"
loading={false}
name={
<StatusHelper
- status="IN_REVIEW"
+ status="INREVIEW"
/>
}
onClick={[Function]}
stat="7"
- tooltip="issue.status.IN_REVIEW"
- value="IN_REVIEW"
+ tooltip="issue.status.INREVIEW"
+ value="INREVIEW"
/>
</FacetItemsList>
<FacetItemsList
issue.status.OPEN=Open
issue.status.CONFIRMED=Confirmed
issue.status.CLOSED=Closed
-issue.status.TO_REVIEW=To Review
-issue.status.IN_REVIEW=In Review
+issue.status.TOREVIEW=To Review
+issue.status.INREVIEW=In Review
issue.status.REVIEWED=Reviewed
issue.resolution.FALSE-POSITIVE=False Positive