The end-to-end testing setup options used by the rushx test:e2e:local can be found in wdio.local.conf.ts.
By default, the enabled driver for local tests is the chromedriver which will instrument a local chrome instance. The version of the corresponding chromedriver package in the package.json file should be one matching to your local chrome version. E.g. for Chrome version 140, you need to install chromedriver@140.
To enable testing with other browsers such as Microsoft Edge and Safari, you need to:
- Uncomment the capabilities and services entries on wdio.local.conf.ts.
- Install the
safaridriverand/ormsedgedriveron your local machine. (Instructions will depend on your OS.) - Start any driver program you want before running the tests.
- In case of driver port conflicts, you can adjust each driver by their respective configuration.