Writing Cypress tests involving the browser's prefer-color-scheme
Testing a website which incorporates a user's preferred colour scheme with Cypress is fairly straight forward, if you know what to look for. Here's the solution I came up with for my particular scenario