allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

Steps, video and screenshots are not displayed when Playwright test timeouts after multiple attempt to perform action

Open VinayKumarBM opened this issue 2 years ago • 3 comments

Steps video and screenshots are not displayed when Playwright test fails due timeout after multiple attempt to perform action on the element.

Please find the attached screenshot of the issue. Timeout Timeout end

Please suggest a way to resolve this issue.

VinayKumarBM avatar Oct 11 '22 09:10 VinayKumarBM

Can you please provide some input on this issue.

VinayKumarBM avatar Nov 15 '22 11:11 VinayKumarBM

Hello @VinayKumarBM can you please provide reproduction of your case? I created demo where tests failed by timeout and my video and sreenshot attachments are fine https://github.com/vovsemenv/pw-504-bug/blob/master/tests/all-completed.test.ts

vovsemenv avatar Nov 15 '22 13:11 vovsemenv

@vovsemenv Thanks for responding to my query.

In my cases it is trying click on some element but it is blocked by some pop up/ alert. I have action wait time on 2 min, so it keeps retrying to click element with message as shown in my screenshots and eventually it times out.

I cases, where we don't have selector on dom, it times out and fails and I can see that attachments correctly. Only in above scenario I only see error message without any steps or attachments.

Please let me know, if you need any additional details.

VinayKumarBM avatar Nov 16 '22 07:11 VinayKumarBM

I can't reproduce the error using [email protected]

baev avatar Jul 01 '24 17:07 baev