Skip to content

Commit

Permalink
Add function to PageRenderer to allow clipboard actions (#22332)
Browse files Browse the repository at this point in the history
* Add function to PageRenderer to allow clipboard actions
* Update expected screenshots after recent QueuedTracking update
  • Loading branch information
snake14 authored Jun 25, 2024
1 parent f77373d commit 3ed86b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions tests/lib/screenshot-testing/support/page-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,10 @@ PageRenderer.prototype.getWholeCurrentUrl = function () {
return this.webpage.evaluate(() => window.location.href);
};

PageRenderer.prototype.allowClipboard = function () {
this.browserContext.overridePermissions(this.getWholeCurrentUrl(), ['clipboard-read', 'clipboard-write']);
};



exports.PageRenderer = PageRenderer;

0 comments on commit 3ed86b7

Please sign in to comment.