Installing Microsoft Edge Browsers for E2E Testing on Docker Executor

Overview

Microsoft Edge install isn't supported by circleci/browser-tools-orb. This article provides a guide on installing Edge on an Ubuntu-based Docker executor for testing purposes. Also support for this is raised at https://github.com/CircleCI-Public/browser-tools-orb/issues/121.

Prerequisites

  • Access to CircleCI with appropriate permissions.
  • A project set up on CircleCI using ubuntu based executors.

Instructions

Installing Microsoft Edge on Docker Executor

  1. Choose Docker Executor: Use an Ubuntu based image for installing Microsoft Edge.
  2. Add Microsoft Repository and Install Edge:
    • Use the following script in your CircleCI configuration to install Microsoft Edge: 
docker:
  image: cimg/base:current
step:
   - checkout
   - run:
       name: Import Microsoft GPG Key
       command: |
         wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-archive-keyring.gpg

   - run:
       name: Add Microsoft Edge Repository
       command: |
         echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/edge stable main" | sudo tee /etc/apt/sources.list.d/microsoft-edge-stable.list

   - run:
       name: Update Package List Again
       command: sudo apt-get update

   - run:
       name: Install Microsoft Edge
       command: sudo apt-get install -y microsoft-edge-stable

   - run:
       name: Verify Installation
       command: |
         if command -v microsoft-edge >/dev/null 2>&1; then
           echo "Microsoft Edge installed successfully."
           microsoft-edge --version
         else
           echo "Microsoft Edge installation failed." >&2
           exit 1

For Microsoft Edge, follow the provided script to install it on an Docker executor. This setup allows you to conduct comprehensive browser testing on CircleCI.

Additional Resources

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.