Prevent Chrome Extension From Breaking Unexpectedly

You need to know this to make sure your chrome extension does not break unexpectedly

Video

Transcript

You need to know this to make sure your chrome extension does not break unexpectedly

A lot of chrome extensions add UI components to live websites

As time goes on, sites receive updates that change their theme and layout, add new components

Modifications like that have a high chance of making our browser plugin look inconsistent

When a website that we rely on changes their underlying framework - our extension may stop working completely

We want our add-on to be resilient enough to withstand any changes to websites it depends on

To achieve that we must regularly check if an update like that didn’t break our extension

Good news is that you don’t have to do that manually all by yourself

After the release of Chrome 112 it is now possible to launch the browser in headless mode with an extension installed with the help of the new --headless=new mode

That allows us to run automated end-to-end chrome extension tests on a remote server multiple times every day.

Whenever a test fails - we will be notified and will be able to address the change immediately

Now, we can make sure our chrome extension is always operational, no matter how much the other website changes