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

Media Query Breakpoint Testing #115

Closed
oleersoy opened this issue Sep 21, 2015 · 8 comments
Closed

Media Query Breakpoint Testing #115

oleersoy opened this issue Sep 21, 2015 · 8 comments

Comments

@oleersoy
Copy link
Contributor

It would be nice to be able to launch a test in multiple browser windows that correspond to the various media query breakpoints in order to instantly invoke the corresponding media query tests. We can do this manually by using Device Mode and Mobile Emulation, but that requires interaction.

Anyone know if perhaps Browsersync or something else does this, and whether it would be acceptable to embed it in the SUIT tests?

@timkelty
Copy link
Member

That would be nice if we could do it directly with Browsersync.
If we went the screenshot route - we could probably do it with PhantomJS relatively easily.

Also - a related tool: http://breakpointtester.com/

@oleersoy
Copy link
Contributor Author

Wow - http://breakpointtester.com/ is exactly what I was thinking...I think.

So does the screenshot route mean show screenshots of PhantomJS renderings at viewport sizes that match the media query breakpoints?

Google also has:
https://developers.google.com/web/tools/starter-kit/

I posted an issue on the browsersync repository and asked whether it can give us something similar to what the breakpoint tester does:
BrowserSync/browser-sync#838

@simonsmith
Copy link
Member

This feels like a duplicate of #114

I'd be in favour of closing this and keeping discussion in one place

@oleersoy
Copy link
Contributor Author

oleersoy commented Oct 8, 2015

The objective of #114 is to enable designers studying the tests to get up to speed as fast as possible on the CSS concept / effect that the CSS has.

The objective this issue would be to be able to rapidly verify the effect of the media queries on the visual rendering of the test by opening browsers with varying viewport sizes triggering the media queries. In other words be able to verify the media queries in action with minimal effort.

It could be done with a button that triggers javascript to resize the browser at given timing intervals. It can probably just be closed / deferred though. I'm sure breakpoint issues will get caught by users.

@oleersoy
Copy link
Contributor Author

oleersoy commented Oct 8, 2015

Just realized that Bootstrap does something similar here:
Bootstrap Responsive Utilities

Except they just tell you do resize your browser to to trigger the queries.

@oleersoy
Copy link
Contributor Author

oleersoy commented Oct 8, 2015

Actually this would probably best be handled by something like:
https://addons.mozilla.org/en-us/firefox/addon/emuflex/

Feel free to close.

@simonsmith
Copy link
Member

I'm planning to implement automated CSS testing on some static components for a work project. If it goes well we can look at bringing something like that into SUIT for testing components.

Something like https://github.com/garris/BackstopJS

@oleersoy
Copy link
Contributor Author

oleersoy commented Oct 9, 2015

Wow - That's pretty intriguing. I'll have a closer look as well.

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

3 participants