Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: how to test for URL changes? #40

Open
fredcido opened this issue Apr 11, 2021 · 0 comments
Open

Question: how to test for URL changes? #40

fredcido opened this issue Apr 11, 2021 · 0 comments

Comments

@fredcido
Copy link

Hello all,

I'm really new to electron, I've started to use this project to test some custom elements with shadow dom support, so far it has showed to be really nice. However, I'm having some problems on doing some assertions, such as checking when the page URL had been changed by the code being tested. In one of my components, at certain conditions, the following happens:

window.location.href = 'login';

How can I assert that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant