Repository navigation
fix(test): hide passwords in --video captions - #7
Open
SaqlainRashed wants to merge 1 commit into
Open
SaqlainRashed wants to merge 1 commit into
SaqlainRashed wants to merge 1 commit into
Conversation
Captions of narrated videos showed the text that tests type, passwords included, and videos get shared. Typing into an input of type password, or with autocomplete="current-password" or "new-password", is now captioned as eight dots, whatever the password's length. The server checks the target only for fill, type, keyboard.type and keyboard.insertText, and only while a video follows the actions. narratedVideo.showPasswords: true shows the typed text again.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--videoshowed the text tests type, passwords included, and videos get shared.input[type=password], or an input withautocomplete="current-password"/"new-password", is now captioned as eight dots, whatever the password's length. The server checks the target forfill,type/pressSequentially,keyboard.typeandkeyboard.insertText, only while a video follows the actions; the result travels on the existingscreencastInputActionevent assecret.narratedVideo: { showPasswords: true }. Documented indocs/videos.md, the TestConfig reference and the README.Tests
fill,pressSequentiallyintoautocomplete="new-password",keyboard.type/insertText) is recorded as secret, other fields are not.npm run ttest -- flashwright-narrated-video --workers=1: 19 passed, 2 skipped (Linux-only voice tests).npm run flintclean.Known limits
recording.jsonstill holds the raw value; masking happens when the video is drawn, which is what letsshowPasswordsapply afterwards. The folder is deleted after rendering unlessFLASHWRIGHT_KEEP_VIDEO_WORKis set. Happy to mask at record time instead if you prefer.keyboard.typeinside a child frame is not detected (main frame and shadow roots only).