From 52f66717d3ca1cf9e294b2c802f605bc8c9b47e2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 10 Jul 2020 15:28:01 +0200 Subject: [PATCH] e2e: print screenshot filename after test --- e2e/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/utils.py b/e2e/utils.py index 64d46e84a..a78dc9e5b 100644 --- a/e2e/utils.py +++ b/e2e/utils.py @@ -58,9 +58,9 @@ class SeleniumTestCase(StaticLiveServerTestCase): ) def tearDown(self): - self.driver.save_screenshot( - f"selenium_screenshots/{self.__class__.__name__}_{time()}.png" - ) + screenshot_file = f"selenium_screenshots/{self.__class__.__name__}_{time()}.png" + self.driver.save_screenshot(screenshot_file) + self.logger.warning("Saved screenshot", file=screenshot_file) for line in self.driver.get_log("browser"): self.logger.warning( line["message"], source=line["source"], level=line["level"]