8000 Actually support MS Edge out-of-box by ChrisN-transnexus · Pull Request #1872 · testem/testem · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Actually support MS Edge out-of-box #1872

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ChrisN-transnexus
Copy link
@ChrisN-transnexus ChrisN-transnexus commented Jan 19, 2025
  • update known-browsers with edgeArgs and headlessEdgeArgs to fully support MS Edge with zero user config
  • implement "app=" browser config switch in edgeArgs to launch test page in edge
  • add "new" value to --headless switch for Headless Edge

Hey folks, right now, testem does not work with MS Edge out-of-the-box. I contract with a company which does not support Chrome or Firefox, and I need to launch ember-cli qunit tests in MS Edge locally and on a ci server. However, as this repo currently stands, local Edge does not navigate to the test html page after a browser instance is launched, either headless or with a UI. Edge is also not properly configured to work in headless mode. I know I could probably create a complex node-based solution to launch Edge separately and work around this shortcoming, but testem claims to support all major browsers out-of-the-box.

After working this for several days, I have determined that Edge needs an "--app={url}" switch passing the full test page url in order to work. I looked for any possible way to pass an --app=http://localhost:7357/354104210191250/tests/index.html?hidepassed (of course the url is dynamic) switch to Edge in my local config, but was defeated at every step by the code. Altering known-browsers to actually support Edge with an edgeArgs object seems to be the most direct solution, and it makes good on your promise to support all major browsers. Neither testem's config files, nor before_tests hook has the full test page url available as a parameter to pass to Edge as a command line switch. To fix headless Edge, Edge's switches need --headless=new passed-in, since the Chrome implementation --headless (with no value) does not work in Edge.

I'm surprised to see testem has been updated to support Brave, which could not be considered a "major browser" at this time, but the same amount of (minimal) customization to support Edge has not been implemented in testem, which clearly is a "major browser."

Please merge this pull request to actually support MS Edge, out-of-the-box, with zero user config.

8BB9

update known-browsers with edgeArgs and headlessEdgeArgs to fully support MS Edge with zero user config
implement "app=" browser config switch in edgeArgs to launch test page in edge
add "new" value to --headless switch for Headless Edge
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
0