iirc that is not the expected use case for using an assertion. You may be able to circumvent by adding some type of conditional prior to the assertion, but I think the better question is why is the test failing intermittently? Can you provide a screenshot or video of the error you are receiving?