Bird
0
0

What is the expected result of running this command?

medium📝 Predict Output Q5 of 15
Cypress - CI/CD and Reporting
What is the expected result of running this command?
docker run -v /my/tests:/e2e -w /e2e cypress/included:12.0.0 --browser firefox
ADocker ignores the browser option and runs Chrome by default
BThe command fails because Firefox is not supported in Docker
CCypress runs tests using Firefox browser inside Docker
DTests run but browser UI is not visible and fails
Step-by-Step Solution
Solution:
  1. Step 1: Understand Cypress browser option in Docker

    Cypress supports running tests in Firefox inside Docker with the --browser flag.
  2. Step 2: Confirm Docker container runs tests with specified browser

    The command runs tests using Firefox as requested.
  3. Final Answer:

    Cypress runs tests using Firefox browser inside Docker -> Option C
  4. Quick Check:

    --browser flag works in Docker = B [OK]
Quick Trick: Use --browser to specify browser in Docker run [OK]
Common Mistakes:
  • Assuming Docker ignores browser option
  • Believing Firefox is unsupported in Docker
  • Thinking UI must be visible for tests to pass

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cypress Quizzes