Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Merge videos generated by playwright into a single mp4 #53

Merged
merged 22 commits into from
Sep 24, 2024
Merged

Conversation

mhan83
Copy link
Contributor

@mhan83 mhan83 commented Sep 23, 2024

Description

  • Merge the videos created by Playwright into a single video that is viewable from the Sauce Labs Test Results page.
  • Introduce a mergeVideos configuration to enable the feature. Defaults to false.

Comments

The video timestamps added to the sauce test report are in the order given to the plugin by the reporter api. When displaying the report in the Test Results page, the results are flattened and displayed depth first. The reporter api generates the test report breadth first, that is, it processes a suite's test cases before processing sub suites. The result is the timestamps in the Test Results page are in reverse order:

Screenshot 2024-09-23 at 11 51 11 AM

I've chosen to keep the reporter logic the same and update the front end to flatten breadth first.

Another issue you'll notice in the screenshot above is the ui doesn't render the video timestamp if the value is 0. I'll fix that as well.

DEVX-3040

@mhan83 mhan83 marked this pull request as ready for review September 23, 2024 21:22
@mhan83 mhan83 requested a review from a team as a code owner September 23, 2024 21:22
src/video/sync/merge.ts Outdated Show resolved Hide resolved
src/video/sync/merge.ts Outdated Show resolved Hide resolved
src/video/sync/merge.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@mhan83 mhan83 merged commit 16e2dc5 into main Sep 24, 2024
2 checks passed
@mhan83 mhan83 deleted the devx-3040 branch September 24, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants