An open API service indexing awesome lists of open source software.

https://github.com/nottyo/cypress-stubbing-urlscheme

example of stubbing url scheme with cypress
https://github.com/nottyo/cypress-stubbing-urlscheme

cypress javascript testing urlscheme

Last synced: 12 months ago
JSON representation

example of stubbing url scheme with cypress

Awesome Lists containing this project

README

          

# cypress-stubbing-urlscheme e.g. tel://, mailto:// or any custom scheme
## without stub
You should see this error because Cypress doesn't allow you to navigate outside the app
![Without Stub](https://raw.githubusercontent.com/nottyo/cypress-stubbing-urlscheme/master/without_stub.png "Without Stub")

## with stub
You can also make an assertion for window.location.href navigation:
![With Stub](https://raw.githubusercontent.com/nottyo/cypress-stubbing-urlscheme/master/with_stub.png "With Stub")