123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should render correctly 1`] = `
- <div
- className="measure-details-header big-spacer-bottom"
- >
- <div
- className="measure-details-primary"
- >
- <div
- className="measure-details-metric"
- >
- <IssueTypeIcon
- className="little-spacer-right text-text-bottom"
- query="reliability_rating"
- />
- Reliability Rating
- <span
- className="measure-details-value spacer-left"
- >
- <strong>
- <Measure
- metricKey="reliability_rating"
- metricType="RATING"
- value="3.0"
- />
- </strong>
- </span>
- <Tooltip
- overlay="component_measures.show_metric_history"
- >
- <Link
- className="js-show-history spacer-left button button-small"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/activity",
- "query": Object {
- "custom_metrics": "reliability_rating",
- "graph": "custom",
- "id": "foo",
- },
- }
- }
- >
- <HistoryIcon />
- </Link>
- </Tooltip>
- </div>
- <div
- className="measure-details-primary-actions"
- >
- <InjectIntl(LeakPeriodLegend)
- className="spacer-left"
- component={
- Object {
- "key": "foo",
- "name": "Foo",
- "qualifier": "TRK",
- }
- }
- period={
- Object {
- "date": "2017-05-16T13:50:02+0200",
- "index": 1,
- "mode": "previous_version",
- "parameter": "6,4",
- }
- }
- />
- </div>
- </div>
- </div>
- `;
-
- exports[`should render correctly for leak 1`] = `
- <div
- className="measure-details-header big-spacer-bottom"
- >
- <div
- className="measure-details-primary"
- >
- <div
- className="measure-details-metric"
- >
- <IssueTypeIcon
- className="little-spacer-right text-text-bottom"
- query="new_reliability_rating"
- />
- Reliability Rating on New Code
- <span
- className="measure-details-value spacer-left"
- >
- <strong>
- <Measure
- className="leak-box"
- metricKey="new_reliability_rating"
- metricType="RATING"
- value="3.0"
- />
- </strong>
- </span>
- </div>
- <div
- className="measure-details-primary-actions"
- >
- <InjectIntl(LeakPeriodLegend)
- className="spacer-left"
- component={
- Object {
- "key": "foo",
- "name": "Foo",
- "qualifier": "TRK",
- }
- }
- period={
- Object {
- "date": "2017-05-16T13:50:02+0200",
- "index": 1,
- "mode": "previous_version",
- "parameter": "6,4",
- }
- }
- />
- </div>
- </div>
- </div>
- `;
-
- exports[`should render with long living branch 1`] = `
- <Link
- className="js-show-history spacer-left button button-small"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/activity",
- "query": Object {
- "branch": "branch-6.7",
- "custom_metrics": "reliability_rating",
- "graph": "custom",
- "id": "foo",
- },
- }
- }
- >
- <HistoryIcon />
- </Link>
- `;
-
- exports[`should render with short living branch 1`] = `
- <div
- className="measure-details-header big-spacer-bottom"
- >
- <div
- className="measure-details-primary"
- >
- <div
- className="measure-details-metric"
- >
- <IssueTypeIcon
- className="little-spacer-right text-text-bottom"
- query="new_reliability_rating"
- />
- Reliability Rating on New Code
- <span
- className="measure-details-value spacer-left"
- >
- <strong>
- <Measure
- className="leak-box"
- metricKey="new_reliability_rating"
- metricType="RATING"
- value="3.0"
- />
- </strong>
- </span>
- </div>
- <div
- className="measure-details-primary-actions"
- />
- </div>
- </div>
- `;
-
- exports[`should work with measure without value 1`] = `
- <div
- className="measure-details-header big-spacer-bottom"
- >
- <div
- className="measure-details-primary"
- >
- <div
- className="measure-details-metric"
- >
- <IssueTypeIcon
- className="little-spacer-right text-text-bottom"
- query="reliability_rating"
- />
- Reliability Rating
- <span
- className="measure-details-value spacer-left"
- >
- <strong>
- <Measure
- metricKey="reliability_rating"
- metricType="RATING"
- />
- </strong>
- </span>
- <Tooltip
- overlay="component_measures.show_metric_history"
- >
- <Link
- className="js-show-history spacer-left button button-small"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/activity",
- "query": Object {
- "custom_metrics": "reliability_rating",
- "graph": "custom",
- "id": "foo",
- },
- }
- }
- >
- <HistoryIcon />
- </Link>
- </Tooltip>
- </div>
- <div
- className="measure-details-primary-actions"
- >
- <InjectIntl(LeakPeriodLegend)
- className="spacer-left"
- component={
- Object {
- "key": "foo",
- "name": "Foo",
- "qualifier": "TRK",
- }
- }
- period={
- Object {
- "date": "2017-05-16T13:50:02+0200",
- "index": 1,
- "mode": "previous_version",
- "parameter": "6,4",
- }
- }
- />
- </div>
- </div>
- </div>
- `;
|