Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Assert the skipped-dependent tally in the transform job failure email test (#78930)

Nemanja Glumacd99fede8e290
diff --git a/test/metabase/transforms/jobs_test.clj b/test/metabase/transforms/jobs_test.clj
index c6be980b548..1b8bf79db99 100644
--- a/test/metabase/transforms/jobs_test.clj
+++ b/test/metabase/transforms/jobs_test.clj
@@ -437,7 +437,9 @@
(count @mt/inbox)))
(is (mt/received-email-subject? :crowberto #"The job .* had failures"))
(is (mt/received-email-body? :crowberto #"transform1"))
- (is (mt/received-email-body? :crowberto #"transform2")))))))))))))
+ ;; transform2 is a dependent that never ran; those are summarized as a count,
+ ;; so the email carries the tally rather than the name
+ (is (mt/received-email-body? :crowberto #"1 downstream transform\(s\)")))))))))))))
(deftest run-mbql-transform-anonymous-user-routing-error-test
(mt/when-ee-evailable