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

TINY-11431: Add chrome clipboardPermission handle #153

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ArvinJ-H
Copy link

Related Ticket:
TINY-11431

Description of Changes:

  • Added clipboardPermission handle and set to true by default

Pre-checks:

  • Changelog entry added
  • package.json versions have not been changed (done by Lerna on release)
  • Tests have been added (if applicable)

Before merging:

  • Ensure internal dependencies are on appropriate versions
    • For stable releases, all dependencies must be stable
    • For release candidates, all dependencies must be release candidates or stable

@ArvinJ-H ArvinJ-H requested a review from a team as a code owner January 22, 2025 08:55
README.md Outdated

See the comment in modules/server/src/main/ts/bedrock/core/Reporter.ts

# Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md)

* `--clipboardPermission` to enable clipboard permission for Chromium.
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be in the wrong file? 😂

Copy link
Author

Choose a reason for hiding this comment

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

ha, too much caffeine is not good for me

@@ -194,9 +196,9 @@ const setupShutdown = (driver: WebdriverIO.Browser, driverApi: DriverLoader.Driv
const driverShutdown = async (immediate?: boolean) => {
try {
if (immediate) {
driver.deleteSession();
await driver.deleteSession();
Copy link
Member

Choose a reason for hiding this comment

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

Some of this changed on my branch #145 so maybe we need to merge that and then redo this 🤔

if (settings.headless) {
await driver.setWindowSize(1280, 1024);
} else {
await driver.maximizeWindow();
Copy link
Member

Choose a reason for hiding this comment

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

This is still important, remote testing browsers regularly open at a very small size and cause tests to fail

@@ -58,7 +58,8 @@ export const forAuto = (directories: Directories, argv: string[] = process.argv)
ClOptions.devicefarmRegion,
ClOptions.browserVersion,
ClOptions.platformName,
ClOptions.useSelenium
ClOptions.useSelenium,
ClOptions.clipboardPermission
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem to be actually used anywhere? It always adds --enable-clipboard on chrome

Copy link
Author

Choose a reason for hiding this comment

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

Yeah.. sorry should've been a draft pr, changing that now. 😬

@kemister85 kemister85 marked this pull request as draft January 23, 2025 04:09
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