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

Add fullscreencontainer query param (similar to devmode but does not modify test timeout) #763

Merged
merged 1 commit into from
Nov 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions addon-test-support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ export function setupApplicationTest(hooks, _options) {
Uses current URL configuration to setup the test container.

* If `?nocontainer` is set, the test container will be hidden.
* If `?dockcontainer` or `?devmode` are set the test container will be
absolutely positioned.
* If `?devmode` is set, the test container will be made full screen.
* If `?dockcontainer`, `?fullscreencontainer` or `?devmode` are set the test
container will be absolutely positioned.
* If `?devmode` or `?fullscreencontainer` is set, the test container will be
made full screen.

@method setupTestContainer
*/
Expand All @@ -103,9 +104,11 @@ export function setupTestContainer() {

let containerVisibility = params.nocontainer ? 'hidden' : 'visible';
let containerPosition =
params.dockcontainer || params.devmode ? 'fixed' : 'relative';
params.dockcontainer || params.devmode || params.fullscreencontainer
? 'fixed'
: 'relative';

if (params.devmode) {
if (params.devmode || params.fullscreencontainer) {
testContainer.className = ' full-screen';
}

Expand Down