Skip to main content
11 July 2024

Make some pages for Visual Regression Testing only in Drupal

When you do visual regression testing, it can be a great idea to have some dedicated pages with all the different elements of your site combined. So instead of running screenshots of many pages on your site, you could do just a few and cover all the UI. These are also sometimes called style guides.

On the other hand, you do not want your site visitors to accidentally open these pages and be surprised by what they are for.

One of the approaches to hide these pages could be setting up access rules to only allow certain IP addresses (like Diffy's IP address) to access those pages.

Here is a code snippet that can do that for your regular nodes.

Code snipped was provided by Felix Eve

Also, make sure to exclude this page from your sitemap.xml as Google won't be happy to index the page it doesn't have access to (as advised by Kevin Reynen

Tags

Dealing with ShadowDOM with jQuery

Recently we started testing https://urban.org and we wanted to take screenshots of the dropdown menu and search box, but they were implemented as components with shadowDOM.
2 mins read read

7 Must use WordPress plugins for business websites and why to use them

WordPress plugins are widely used to add some new functionality or to extend the existing functionality on the website.

There are several WordPress plugins are available for WordPress users.

If you’re running a business website, there are multiple plugins that you can install to improve the performance of your website.

If you’re looking to add the perfect plugin to your WP site, it will take a lot of time and effort.

We’ve already check reviewed some incredible and must-have WordPress plugins that are relevant to the business website.

4 min read

Diffy helps your QA team

to ensure that websites don't get visual bugs