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

Use Given Puppeteer Page Instance without page.goto() #428

Closed
kevinatown opened this issue Oct 4, 2018 · 11 comments
Closed

Use Given Puppeteer Page Instance without page.goto() #428

kevinatown opened this issue Oct 4, 2018 · 11 comments

Comments

@kevinatown
Copy link
Contributor

Hey! I think it will be great for a way to tell pa11y to ignore the URL and not run page.goto() and just use the provided puppeteer page instance. This would allow for:

  • a single puppeteer page instance to be programmed separately using puppeteer's own api
  • once a page instance manipulated/rendered it can be verified using e2e tests and passed to pa11y

It should be trivial to implement; adding an option like ignoreUrl that defaults to false and requires a page instance.

@kevinatown
Copy link
Contributor Author

Also I got a branch with what I was thinking and tests, it was super simple.

@hollsk
Copy link
Member

hollsk commented Oct 5, 2018

Cool! We'd be happy to review a PR if you'd like to submit it 😄

@kevinatown
Copy link
Contributor Author

@hollsk Thanks for your quick response, heres the PR. lmk what y'all think.

@hollsk
Copy link
Member

hollsk commented Oct 10, 2018

Thanks @kevinatown ! Haven't had time for a proper look yet, hoping to do that on friday. From a quick scan it looks great though 😄

Will get back to you shortly!

@kevinatown
Copy link
Contributor Author

Awesome! Let me know if there is anything I need to change!

@AndrewLeedham
Copy link

@hollsk Any movement on this. Would be a great addition.

@hollsk
Copy link
Member

hollsk commented Nov 8, 2018

Yes, I agree! I need somebody with a bit more experience than I have to review, and I've been struggling to find somebody who has the time.

But I haven't forgotten about it, and I'm still on the lookout for a suitable reviewer, hoping to find somebody soon. Thanks for your patience 😄

@kevinatown
Copy link
Contributor Author

@hollsk small bump on the status of the review

@thaffenden
Copy link

Would also love to use this if you have a chance to finish off the PR.

@hollsk
Copy link
Member

hollsk commented May 22, 2019

No promises on timelines, but we've managed to get a bit of momentum on our backlog now, so hopefully we'll get back to this one soon.

Thanks for your patience, everyone - i know it's taken a while!

@joeyciechanowicz
Copy link
Member

Closing as the PR is merged

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

No branches or pull requests

5 participants