Skip to content

Conversation

@muodov
Copy link
Member

@muodov muodov commented Mar 7, 2025

A minor tweak to make the test output more helpful

@muodov muodov added the tests Add or improve existing tests label Mar 7, 2025
@muodov muodov requested review from noisysocks and sammacbeth March 7, 2025 16:58
Copy link
Contributor

@noisysocks noisysocks left a comment

Choose a reason for hiding this comment

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

Good idea. I made very similar changes to playwright/runner.ts locally when I was debugging issues.

Code looks good to me aside from question around whether it’s a good idea to have AutoConsent leak information about the messaging channel.

Could you please provide testing instructions?

domActions: DomActions;
filtersEngine: FiltersEngine;
protected sendContentMessage: MessageSender;
sendContentMessage: MessageSender;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe _runRulesSequentially in AutoConsentCMP should throw an error that AutoConsent catches? We're mixing concerns somewhat by having AutoConsentCMP know about the messaging channel.

Copy link
Contributor

@noisysocks noisysocks left a comment

Choose a reason for hiding this comment

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

See previous review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Add or improve existing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants