Skip to content

Instantly share code, notes, and snippets.

@ryanto
Created May 22, 2018 14:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanto/5963ec587eb8d3a470796c26487499cb to your computer and use it in GitHub Desktop.
Save ryanto/5963ec587eb8d3a470796c26487499cb to your computer and use it in GitHub Desktop.
Fullscreen test helper
// tests/helpers/fullscreen.js
import $ from 'jquery';
import { registerAsyncHelper } from '@ember/test';
export default registerAsyncHelper('fullscreen', function() {
window.QUnit.config.testTimeout = 9999999;
$('#ember-testing-container').css({
background: 'initial',
width: '100vw',
height: '100vh'
});
$('#ember-testing').css({
zoom: '100%',
width: '100%',
height: '100%',
transform: 'none'
});
$('#qunit').hide();
$('iframe').hide();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment