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

Enable mobile emulation #292

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

duncan-bayne
Copy link

@duncan-bayne duncan-bayne commented Mar 21, 2025

🚨 WIP - do not merge 🚨

Currently, when creating a Cuprite driver, it's not possible to specify that it should have mobile emulation enabled.

This PR adds that functionality.

Remember to revert 5117a90 once rubycdp/ferrum#527 is merged.

duncan-bayne and others added 9 commits March 20, 2025 13:14
This provides an LSP interface to the codebase, allowing for easier
navigation, searching, etc. in editors that support LSP.
We need to expose the mobile setting in the Ferrum API as well. Until
that's merged, use a fork of Ferrum that exposes it.
This will make debugging rspec examples easier.
This tests for mobile emulation by:

* Checking that text controlled by a CSS media query is / isn't
visible.

* Checking that touch input is enabled / disabled.
This reverts commit b0d97f9.
These were (a) trying to use a non-existent session, and (b) trying to
set both `mobile: true` and a resolution, which is now disallowed.
@duncan-bayne duncan-bayne force-pushed the 216-mobile-emulation branch 2 times, most recently from 2d327d0 to d2de7e2 Compare March 27, 2025 11:48
@duncan-bayne duncan-bayne force-pushed the 216-mobile-emulation branch from d2de7e2 to 410be86 Compare March 27, 2025 12:26
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