GitLab
GitLab logoGitLab · Feature trail

Browser Testing Frameworks

1 post · Dec 2017

What this trail covers

GitLab transitioned its frontend and RSpec feature tests from PhantomJS to headless Chrome. This involved updating the Karma test runner for frontend tests and switching Capybara's driver from Poltergeist to Selenium/ChromeDriver for backend feature tests. The migration addressed limitations of PhantomJS, such as its outdated rendering engine and JavaScript support, and improved test accuracy and debugging capabilities. Challenges included adapting to Selenium's API differences, such as handling JavaScript modals and element visibility, and refactoring tests that relied on Poltergeist-specific methods like `.trigger('click')`. The new setup allows for running tests in a real, modern browser environment, improving test representativeness and reducing technical debt.

All GitLab trails