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

Make e2e tests run headless #321

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Make e2e tests run headless #321

merged 2 commits into from
Oct 3, 2024

Conversation

david-tejada
Copy link
Owner

@david-tejada david-tejada commented Oct 3, 2024

This PR makes tests run headless. I wasn't able to make the tests use the system clipboard because document.execCommand doesn't work in headless mode in Chrome for Testing. Instead of that I use a simulated clipboard using the extension's own local storage. This makes that the reading from and writing to the clipboard is not tested. I don't think it matters since that breaking would be immediately noticeable. We were only testing the clipboard read and write implementation for manifest v3 anyway. This also make us not rely on the clipboard in case in the future communication between Talon and the extension is made using talon-rpc.

Copy link

netlify bot commented Oct 3, 2024

Deploy Preview for voluble-crisp-6e2a75 ready!

Name Link
🔨 Latest commit 193e41e
🔍 Latest deploy log https://app.netlify.com/sites/voluble-crisp-6e2a75/deploys/66fea2ab743fa20008f95f20
😎 Deploy Preview https://deploy-preview-321--voluble-crisp-6e2a75.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@david-tejada david-tejada merged commit 9a55140 into main Oct 3, 2024
6 checks passed
@david-tejada david-tejada deleted the headless-tests branch October 3, 2024 14:29
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.

1 participant