karma-runner / karma-runner/karma

Karma cannot find Firefox profile [Ubuntu]

Open
#3,811 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### Expected behaviour

ng test should start Karma server and launch firefox browser

### Actual behaviour

ng test does start Karma server, but when launching firefox a popup shows up saying that the firefox profile cannot be found. I can click the localhost link to run the tests, but it will disconnect after a minute or so.

### Environment Details

- Karma version (output of `karma --version`): 2.0.0

### Steps to reproduce the behaviour

I believe it may be because I have the snap version of Firefox, so my profile is saved in /snap/firefox/common/.mozilla/

How do I get Karma to recognize that the profile is there?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `ng test` on Ubuntu using the snap version of Firefox, then investigate how Karma 2.0.0 launches Firefox and locates its profile. Done means the Firefox profile popup no longer appears and the test connection remains active without requiring the localhost link.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, ubuntu
Domain
operating-systems, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.