Broken `master` in `jest` ee/spec/frontend/threat_monitoring/components/waf_statistics_summary_spec.js
Job #394758387 failed for 88f45b39:
Introduced by !21916 (merged).
2713 FAIL ee/spec/frontend/threat_monitoring/components/waf_statistics_summary_spec.js
2714 ● WafStatisticsSummary component › renders the anomalous traffic percentage
2715 expect(received).toMatchSnapshot()
2716 Snapshot name: `WafStatisticsSummary component renders the anomalous traffic percentage 1`
2717 - Snapshot
2718 + Received
2719 - <glsinglestat-stub
2720 + <gl-single-stat-stub
2721 class="col-sm-6 col-md-4 col-lg-3"
2722 title="Anomalous Requests"
2723 value="3%"
2724 variant="warning"
2725 />
2726 39 |
2727 40 | it('renders the anomalous traffic percentage', () => {
2728 > 41 | expect(findAnomalousStat().element).toMatchSnapshot();
2729 | ^
2730 42 | });
2731 43 |
2732 44 | it('renders the nominal traffic count', () => {
2733 at Object.toMatchSnapshot (ee/spec/frontend/threat_monitoring/components/waf_statistics_summary_spec.js:41:41)
2734 ● WafStatisticsSummary component › renders the nominal traffic count
2735 expect(received).toMatchSnapshot()
2736 Snapshot name: `WafStatisticsSummary component renders the nominal traffic count 1`
2737 - Snapshot
2738 + Received
2739 - <glsinglestat-stub
2740 + <gl-single-stat-stub
2741 class="col-sm-6 col-md-4 col-lg-3"
2742 title="Total Requests"
2743 value="2.7k"
2744 variant="secondary"
2745 />
2746 43 |
2747 44 | it('renders the nominal traffic count', () => {
2748 > 45 | expect(findNominalStat().element).toMatchSnapshot();
2749 | ^
2750 46 | });
2751 47 | });
2752 48 |
2753 at Object.toMatchSnapshot (ee/spec/frontend/threat_monitoring/components/waf_statistics_summary_spec.js:45:39)
I will revert !21916 (merged). /cc @markrian @fatihacet