Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

[feature request] Ability to set viewport size #114

Open
jasonday opened this issue Nov 13, 2017 · 3 comments
Open

[feature request] Ability to set viewport size #114

jasonday opened this issue Nov 13, 2017 · 3 comments

Comments

@jasonday
Copy link

Because content or UI is often hidden/exposed at different viewports with responsive design, allowing for testing at different viewport sizes is important for comprehensive testing.

See axe-crawler for example.

@Hywan
Copy link
Contributor

Hywan commented Nov 14, 2017

@jeanmonod @ralf57 It is possible to do that with PhantomJS. You should check pa11y options, it exposes specific options that are passed to PhantomJS to do that.

@ralf57
Copy link
Contributor

ralf57 commented Nov 14, 2017

thanks @Hywan
@jasonday will look into that ASAP

@jasonday
Copy link
Author

Awesome. Additionally, I mentioned axe-crawler because in addition to having a preset config for viewports (see below), but also tests against different browsers.

I think in addition to figuring out the mechanics of the testing, the UI & reporting will need to be figured out as well. I'll try and take some time to wireframe out some potential solutions.

 "viewPorts": [
        {
            "name": "mobile",
            "width": 360,
            "height": 640
        },
        {
            "name": "tablet_vertical",
            "width": 768,
            "height": 1024
        },
        {
            "name": "tablet_horizontal",
            "width": 1024,
            "height": 768
        },
        {
            "name": "desktop",
            "width": 1440,
            "height": 900
        }
    ],

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

No branches or pull requests

3 participants