Problem/Motivation
It seems like #3059356: [Security] Update yarn packages to fix 19 vulnerabilities by updating nightwatch broke the functionality to write logs to the file system after test run.
Proposed resolution
Write logs when test case has enabled this functionality.