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

API for reading the URL via the Page interactor #177

Open
taras opened this issue Jan 28, 2022 · 4 comments
Open

API for reading the URL via the Page interactor #177

taras opened this issue Jan 28, 2022 · 4 comments

Comments

@taras
Copy link
Member

taras commented Jan 28, 2022

I'm working in a Cypress test suite and I wanted to use the Page interaction to check the URL. I tried the Page interaction but it doesn't seem to have any way to access the URL.

Cypress provides an API for interaction with the URL via cy.url. Do we want to have our own mechanism for doing this or should we rely on Cypress' API?

@cowboyd
Copy link
Member

cowboyd commented Jan 28, 2022

It definitely has a filter for the url https://github.com/thefrontside/interactors/blob/main/packages/html/src/page.ts#L7

Is that not working? Or do we not add the filters to the object so you can't say:

await Page.url();

In the way that you can await a normal filter value:

await Button("Submit").enabled();
GitHub
Composable page objects for components. Contribute to thefrontside/interactors development by creating an account on GitHub.

@taras
Copy link
Member Author

taras commented Jan 28, 2022

@cowboyd I think I didn't know I can get that. I'll try it.

@cowboyd
Copy link
Member

cowboyd commented Jan 29, 2022

@taras That sounds like a bug in our documentation

@cowboyd
Copy link
Member

cowboyd commented Feb 3, 2022

@taras How do you think we could improve the docs to make this not an issue.

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

2 participants