Skip to content

Add cookies in config for domSnapshot#1669

Merged
chinmay-browserstack merged 3 commits intomasterfrom
add_cookies_field_domsnapshot
Jul 24, 2024
Merged

Add cookies in config for domSnapshot#1669
chinmay-browserstack merged 3 commits intomasterfrom
add_cookies_field_domsnapshot

Conversation

@chinmay-browserstack
Copy link
Copy Markdown
Contributor

Adding cookies field in config of domSnapshot

rishigupta1599
rishigupta1599 previously approved these changes Jul 22, 2024
@rishigupta1599 rishigupta1599 dismissed their stale review July 22, 2024 09:08

Testcases pending

Copy link
Copy Markdown
Contributor

@rishigupta1599 rishigupta1599 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add testcase with config validation for DOM serialization response so that we don't miss it in future config changes as well

});

it('should contain valid dom serialization values', () => {
const dom = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This you have hardcoded so it will always pass until you remove it from config.
Expectation for test case should be PercyDOM.serialize -> response -> PercyConfig.validate(response) -> No errors

Copy link
Copy Markdown
Contributor

@pankaj443 pankaj443 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chinmay-browserstack chinmay-browserstack merged commit e6b3ec4 into master Jul 24, 2024
@chinmay-browserstack chinmay-browserstack deleted the add_cookies_field_domsnapshot branch July 24, 2024 12:19
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.

3 participants