I need help finding a dependable headless browser setup for automated testing of my Angular application.
I’ve been researching different approaches and built a test suite using Selenium with Protractor and Jasmine. Everything worked perfectly during local development, but when I tried to run tests headlessly in our continuous integration environment, things fell apart. PhantomJS was my first choice but it’s been extremely unstable and causes random failures.
I’m open to switching frameworks and rewriting parts of my test code if needed. Here’s what I absolutely need (listed by importance):
- Headless execution on our CI system - We use Windows with TeamCity, though we might switch to Mac later
- Local testing capability - Must work on my Windows machine with standard browsers like Chrome and Firefox
- Cloud testing integration - Would be nice to connect with services like BrowserStack or Sauce Labs
I’ve spent way too much time trying to make PhantomJS stable. The idea is solid but the execution feels unreliable. I’ve looked at other headless browser options but haven’t actually tested them yet.
Is there a proven solution that meets these requirements? I’m relatively new to JavaScript testing and Angular automation, so any guidance would be helpful.
Thanks in advance for your suggestions!