import { Meta } from '@storybook/blocks';
When developing any feature for this project we ensure we check our site is as accessible to as many users as we can by completing an a11y swarm. When developing any feature for this project we ensure we check our site is as accessible to as many users as we can. We often need to test a branch of Simorgh across multiple devices, e.g. on mobile device and an A11y laptop with the Assistive Technology we support, such as screen readers. In this document we specify some instructions to allow you to test cross device with Simorgh; we assume the dev machine is MacOS, any device can be used for accessibility testing. The instructions allow you to load a locally running instance of Simorgh on your local WiFi network.
- Ensure any local VPNs are disabled before attempting these steps.
- In Simorgh's route directory navigate to
webpack.config.client.js
- Replace
localhost
on line 56 and line 88 to0.0.0.0
- Open up a new terminal window and type
ifconfig
- CMD + F for
inet
and find your local network IP address, it will likely be in this formatinet 192.168.x.xx
with thexx
at the end being your device's unique number on the network. - In the
local.env
file, change these lines to match your dev machine's IP address: http://192.168.x.xx:7080 - Replace this line with the following code:
const injectCspHeaderProdBuild = skipMiddleware;
to disable the csp policy for testing; allowing javascript files to be loaded in the browser from your dev machine. - Start up your Simorgh with a production build:
npm run build && npm run start
and visit http://192.168.0.xx:7080/mundo/23263889 - Now you should be able to access any page on any device that's connected on your local network by prefixing your Simorgh's host machines IP http://192.168.0.xx:7080/foobar instead of http://localhost:7080/foobar